On 31 October 2011 08:31, Ramzi Akremi <[email protected]> wrote:
> Hi all,
>
> I would like to emphasize some part of a source when using asciidoc
>
> for instance, I have this portion of text
>
> [source, ruby, numbered]
> ------------
> total_amount, frequent_renter_points = 0, 0
> result = "Rental Record for #{name}\n"
> @rentals.each do |element|
> this_amount = 0
> -------------
>
> I would like to make lines 2 to 4 appear differently (another
> background or in bold), how can I pass these kind of parameters to the
> pigments highlighter
There is no built-in for extra parameters for pygmentize, you will
have to make a custom conf file containing:
source-style=template="source-highlight-block",presubs=(),postsubs=("callouts",),posattrs=("style","language","src_numbered"),filter="pygmentize
-f html -l {language} {src_numbered?-O linenos=table} {encoding?-O
encoding={encoding}}"
with attributes for the extra parameters added.
Cheers
Lex
>
> I've followed the hl_lines trail which works well in command line but
> I would like to streamline this with my asciidoc workflow.
>
> thanks in advance
>
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/asciidoc?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.