On 08/31/2012 06:54 PM, Lex Trotman wrote:
>if I use [source,c], I can get quoted c code highlighted properly, nice.
>I was asking if we have any workaround to support vim as a language, so that
>is can we have a [source,viml], so vim script can also be highlighted?
>
Pygments has a vim highlighter, see its documentation.
hi Lex:
pygments give me a good highlight for vimscript.
but I just found if I hardcode everything in asciidoc source, like this:
* search and replace - substitution
+
[source,vim]
----
:%s/cisco/juniper/gc
----
and declare the highlighter in the header:
my doc
=========================================
mike
:Author Initials: PS
:toc:
:icons:
:revision: 0.8
:source-highlighter: pygments
for HTML output directly generated by asciidoc command its fine, but
when I gengerate pdf with a2x, it complains and not pdf got generated, I
tried dblatex and fop, both the same issue. I think same issue applies
to epub or docbook. but I haven't retain the logs.
anyway just a simply/generic question, how do I :
use the default highlighter in the source file, and
use asciidoc commandline attributes to overide it with another
highlighter when generating HTML
at least this way the generation of all other formats (which was good
before I changing the default highlighter) won't be affactted.
I tried asciidoc -a source-highlighter=pygments ..., don't work.
am I missing anything?
--
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.