Another approach is to use the syntax highlighting for fop that's built into the docbook-xsl collection. Check out the git-scribe project to see how to configure and invoke it.
https://github.com/schacon/git-scribe -Dan On Tue, Jul 2, 2013 at 8:03 AM, Lauri Kasanen <[email protected]> wrote: > Stéphane Gourichon <stephane.gourichon@...> writes: > > > > > Le 02/07/2013 12:16, Lauri Kasanen a écrit : > > > Sure, I could do that, but the point of the request was to make it > > > default, so everyone could benefit. > > > I understand the latex PDF output > > > does it by default, therefore would be nice if the FOP output did it > > > too, without messing by the user. > > > > +1 Good approach. Many users after seeing the nice color syntax > > highlighting in asciidoc to HTML output discover that FOP output does > > not do it by default. If the need is standard and common, it makes sense > > to integrate it in the workflow. > > > > Yet it will progress only if someone does the actual work. It's an > > open-source world, remember. > > GNU highlight's docbook output only does bold, italic, and optionally line > numbering, but it's an improvement still over just copying the code. > > I can't into python, so I can't make it depend on FOP; but have a patch > that enables it for all docbook output. > http://pastebin.ca/2414793 > > - Lauri > > -- > You received this message because you are subscribed to the Google Groups > "asciidoc" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/asciidoc. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Dan Allen | http://google.com/profiles/dan.j.allen -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/asciidoc. For more options, visit https://groups.google.com/groups/opt_out.
