(Sorry for responding to two separate mails, I'm a bit rushed, going on a three-day holiday.)
Hans Hagen wrote:
Mojca Miklavec wrote:
If you have something like \startMPpage draw ... \stopMPpage, it will do the syntax highligting for metapost inside the \start-\stop pair.
That's a great idea, I'll add that to my version
I downloaded SpellChecker and SuperTab (autocomplete) today from the vim website and it works great! (see http://contextgarden.net/Vim and feel free to add any useful stuff there)
Version 7 has a spell-checker built in.
I was astonished as I saw autocomplete work. There are only a couple of lines with an extraordinary functionality. I think that if someone writes a good script to convert texshow to vim syntax highlighting script, than autocomplete will be able to provide good hints for all the existing commands in ConTeXt and the corresponding parameters. I'll try to see what I can do, but please don't excpect any results too soon.
There's always the ever-simple CTRL-P/CTRL-N as well.
What is the syntax? I can exten ctstools to spit out a vim keyword table; it already handles scite, jedit and bbedit so adding vim is not undoable
Download vim and run :help syntax. But the short version is
syn keyword contextKeyword ... ^-- group name ^-- keywords
But that won't work for stuff beginning with \. Then you'll have to use regexes and
syn match contextKeyword ... ^-- regex
Exactly what kind of keyword table are we talking about?, nikolai