Hello, Is it possible somehow, to get inline syntax highlighting (as with \type{...})? Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/
On Mon, 20 Jul 2009, Peter Münster wrote:
Hello,
Is it possible somehow, to get inline syntax highlighting (as with \type{...})?
Attached is an ugly solution. I haven't tested it too much.
Usage example
\usemodule[vim]
\setupwhitespace[big]
\setupcolors[state=start]
\definevimtyping[C][syntax=c]
\starttext
We can always type code in display mode
\startC
#include
On Mon, 20 Jul 2009, Aditya Mahajan wrote:
On Mon, 20 Jul 2009, Peter Münster wrote:
Attached is an ugly solution. I haven't tested it too much.
Thank you! (perhaps ugly, but working!)
It should be possible to also define \typeC{...}, but then I will need to read up how to read code in verbatim and write it to a file.
Not really necessary for me. Thanks, Peter -- Contact information: http://pmrb.free.fr/contact/
participants (2)
-
Aditya Mahajan
-
Peter Münster