Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement line highlighting for Pygments #1444

Closed
mojavelinux opened this issue Dec 24, 2019 · 0 comments
Closed

Implement line highlighting for Pygments #1444

mojavelinux opened this issue Dec 24, 2019 · 0 comments
Assignees
Milestone

Comments

@mojavelinux
Copy link
Member

mojavelinux commented Dec 24, 2019

Asciidoctor supports line highlighting in source blocks. Now that we figured out how to add background colors in source listings, we should support this when highlighting with Pygments.

Example:

[source%linenums,groovy,highlight="7-9"]
----
package com.example
 
import static ratpack.groovy.Groovy.ratpack
 
ratpack {
    handlers {
        get {
            render "Hello, World!"
        }
    }
}
----
@mojavelinux mojavelinux self-assigned this Dec 24, 2019
@mojavelinux mojavelinux added this to the v1.5.0 milestone Dec 24, 2019
mojavelinux added a commit to mojavelinux/asciidoctor-pdf that referenced this issue Dec 24, 2019
…ks when using Pygments as source highlighter
mojavelinux added a commit to mojavelinux/asciidoctor-pdf that referenced this issue Dec 24, 2019
…ks when using Pygments as source highlighter
@mojavelinux mojavelinux modified the milestones: v1.5.0, v1.5.0.rc.1 Jan 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant