Nikolai Weibull wrote:
We were planning on using Vim for preprocessing things like this instead of hacking TeX to do the lexing. I think Mojca (?) had some ideas for this and perhaps even a simple implementation, and given that there is now structured support for preprocessing in texexec I think that this can be done quite easily. A lot easier than writing something in TeX.
Well, a while ago I experimented a bit with 2context.vim: http://pub.mojca.org/tex/vim/fromlgrind/, but this is surely less that Nikolai did with his last attachment (I didn't check it yet): I only changed two or three lines in 2html.vim, which was enough to output ConTeXt code out of any source file supported by vim. The produced PDFs on the page mentioned above are a bit faked, but just the ConTeXt part of it, since I didn't know how to make the \highlight[Statement]{content} highlighted in the proper way and I didn't know how to send the data to vim and then get them back. Mojca