Sublime Forum

Allowing syntax highlighting for namespaced HTML elements?

#1

Hi all,
I have a series of custom xml-like structures that are often placeholders for native elements.
I’m trying to modify the language file to allow for a custom namespace and still import the syntax highlighting that would be included with a default element.

A good example is “script”. For instance, I may have an element like aui:scriptalert(‘test’);</aui:script> but I want everything between those tags to be highlighted as JS.

Is there a way to modify this? I have it working in my Textmate html bundles, but for some reason, bringing those into Sublime don’t quite work, so I wonder if there’s an easy way to handle this.

Thanks in advance!

0 Likes