Ben Fritz wrote: > Tobia Conforto wrote: > > I have some xml files containing JavaScript code inside a <javascript> > > tag. I would like Vim to highlight that code properly. > > I'm not sure what is giving you problems (I haven't looked in detail) > but you can take a look at the following tip to see if the premade > function works...
I should mention that I have :let g:xml_syntax_folding = 1 in this case TextEnableCodeSnip() works only when the special <javascript> tag I define is outside any other tag. It fails if it's nested in the rest of the XML document. If I disable xml_syntax_folding, TextEnableCodeSnip() works as described. It would appear that xml.vim does something funny with the syntax nesting, to enable folding of XML tags, that interferes with it. Any help will be appreciated. Tobia --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
