[NTG-context] t-vim: inline typing?

Aditya Mahajan adityam at umich.edu
Mon Jul 20 17:34:32 CEST 2009

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


We can always type code in display mode
#include <stdio.h>

But more interestingly, we can now type code in inline mode
also. For example to print something we use \startinlineC
printf("%d", num); \stopinlineC and we can continue typing.

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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: t-vim.tex
Type: text/x-tex
Size: 23956 bytes
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20090720/4e7fd378/attachment-0001.bin>

More information about the ntg-context mailing list