Proper startup of Vim syntax script: TeX and HTML?

For discussions about the abc notation standard
laughingman182
Posts: 18
Joined: Fri Oct 21, 2011 9:06 am
Humanity check: a real person
How many letters in "spam" (4)?: 3
Contact:

Proper startup of Vim syntax script: TeX and HTML?

Postby laughingman182 » Wed Jun 27, 2012 6:04 am

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.
- Lee S.

laughingman182
Posts: 18
Joined: Fri Oct 21, 2011 9:06 am
Humanity check: a real person
How many letters in "spam" (4)?: 3
Contact:

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

Postby laughingman182 » Wed Jun 27, 2012 6:16 am

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.
Attachments
abc-entities.vim.txt
abc entities syntax script
(5.22 KiB) Downloaded 130 times
- Lee S.


Return to “Standard”

Who is online

Users browsing this forum: No registered users and 1 guest

cron