Page 1 of 1

Proper startup of Vim syntax script: TeX and HTML?

Posted: Wed Jun 27, 2012 6:04 am
by laughingman182
I'm wondering if it's a good idea to add the HTML & TeX syntax in the same script for loading Vim's syntax highlighting for abc. Basically, this is at the near top of my current syntax script:

Code: Select all

sy region FreeText start=/^\s*$/ excludenl skip=/\_.$/ excludenl end=/^\s*$/

runtime! syntax/html.vim
runtime! syntax/tex.vim
runtime! syntax/postscr.vim


PostScript I know will be needed; that's almost legitimately definitive. I'm just not too sure on the HTML and TeX though. Is including all of the syntax too much? I'll import separate portions for both if needed.

Any help on this would be wonderful; I want to get a definitive syntax highlighting for abc, at the very least.

Re: Proper startup of Vim syntax script: TeX and HTML?

Posted: Wed Jun 27, 2012 6:16 am
by laughingman182
If all that abc has ever used of HTML is it's character entities, that's been taken care of, I've attached the part of the script that covers how character entities are shown in Vim.

This would also show the mnemonics and Unicode character sequences as if they were typed as the original character; that way you'd be able to see how strings would appear as typeset before having to process it.