highlight= with asciidoctor-pdf

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

highlight= with asciidoctor-pdf

fluentcoder@gmail.com
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: highlight= with asciidoctor-pdf

LightGuardjp
Do you have the pygments gem installed?

On Thursday, April 14, 2016, handy [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I'm trying to get line level (change) highlighting to work with asciidoctor-pdf.  My .asc file has

:source-highlighter: pygments
...

[source,python,highlight=4]
-----
include::foo.py[tags=bar]
-----

When I generate the pdf it syntax-highlights the code snippet as python but does not highlight the 4th line of the included segment in any unique way.  I'm expecting maybe a darker background for that line.

What am I missing?
Thank you.



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/highlight-with-asciidoctor-pdf-tp4613.html
To start a new topic under Asciidoctor :: Discussion, email <a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;ml-node%2Bs49171n1h37@n6.nabble.com&#39;);" target="_blank">ml-node+s49171n1h37@...
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Sent from Gmail Mobile
Reply | Threaded
Open this post in threaded view
|

Re: highlight= with asciidoctor-pdf

fluentcoder@gmail.com
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: highlight= with asciidoctor-pdf

mojavelinux
Administrator
In reply to this post by fluentcoder@gmail.com
@handy,

You're not missing anything. Highlighting source lines in Asciidoctor PDF is not currently supported. That's because we don't yet support setting a background color on a span of text (or line).


Cheers,

-Dan

On Thu, Apr 14, 2016 at 7:58 PM, handy [via Asciidoctor :: Discussion] <[hidden email]> wrote:
I'm trying to get line level (change) highlighting to work with asciidoctor-pdf.  My .asc file has

:source-highlighter: pygments
...

[source,python,highlight=4]
-----
include::foo.py[tags=bar]
-----

When I generate the pdf it syntax-highlights the code snippet as python but does not highlight the 4th line of the included segment in any unique way.  I'm expecting maybe a darker background for that line.

What am I missing?
Thank you.



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/highlight-with-asciidoctor-pdf-tp4613.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Dan Allen | @mojavelinux | http://google.com/profiles/dan.j.allen
Reply | Threaded
Open this post in threaded view
|

Re: highlight= with asciidoctor-pdf

fluentcoder@gmail.com
CONTENTS DELETED
The author has deleted this message.