> Hi, > > Hans helped me out with some asciidoc processing a while ago. > > I played a bit further, but I'm currently facing two minor issues: > > (a) I don't know how to turn program listing (verbatim code) from xml > to (perhaps, vim-based) syntax highlighting (but most importantly, to > make sure that line breaks work properly)
> Ad (a). The source that looks similar to this: > > <programlisting language="cpp" linenumbering="unnumbered"> > int main() > { > return 0; > } > </programlisting> > > should be converted into some kind of equivalent of > > % on top > \usemodule[vim] > \definevimtyping [CPP] [syntax=cpp] > > \startCPP > int main() > { > return 0; > } > \stopCPP > Any hints would be greatly appreciated. This should get you pretty close: https://tex.stackexchange.com/a/652116/ You can look through the revision history for a few different versions if the newest one doesn't quite work. -- Max ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________