On Nov 16, 4:26 am, Fabien Meghazi <[email protected]> wrote:
> Is it possible for vim to have a kind of "additional" highlight layer ?
>
> In the case of templates, the source could be html, svg, xml, plain
> text, whatever.
> But if you would like to add the template syntax highlighting, how
> could you make this without loosing the syntax highlight of the
> source.
>

I don't know enough about your specific syntax, but there are a few
options. You can include one syntax file into another. See

http://vim.wikia.com/wiki/Different_syntax_highlighting_within_regions_of_a_file

A simpler solution, if the syntax is appropriate, is to just use the
"containedin" and "contained" options in your definitions to include
your rules only inside the appropriate HTML syntax group.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to