I have a custom xml file format which can contain blocks of code within certain tags.
For example:
<Root>
<Sql> select * from foo </Sql>
<MoreJunk> ... </MoreJunk>
<Python><![CDATA[
def Bar(*args):
return False
]]></Python>
</Root>
How can I get vim to use sql syntax highlighting for the text inside <Sql>
tags and use python higlighting for text inside <Python>
tags?
I know Vim can already do this because it correctly highlights javascript inside html files.
I tried inspecting the html syntax file but couldn't really figure it out.