Zeljko Vrba wrote:

> On Fri, Dec 02, 2005 at 05:56:36PM +0100, Nikolai Weibull wrote:

> > We were planning on using Vim for preprocessing things like this
> > instead

> Vim for preprocessing? Isn't it a bit too painful compared to using a
> "real" programming language?

You misunderstand.  Vim can easily be made to output the highlighting it
would apply to a document on the display to something else, e.g.,
outputting TeX directives instead.

A subthread on the subject can be found here:

http://www.ntg.nl/pipermail/ntg-context/2005/012885.html

It would require very little programming.  syntax/2html.vim, which
converts the buffer to a HTML document with syntax highlighting, is 526
lines in the current CVS incarnation.  A syntax/2context.vim would be
even shorter, perhaps 150 to 200 lines.  If I find the time I’ll write
something this weekend.  I’m catching a could though, so I might not
:-(.

(Note: This would thus allow highlighted code for any format Vim
understand, which is currently over 450!)

        nikolai

-- 
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}
_______________________________________________
ntg-context mailing list
[email protected]
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to