Home Download Buy Blog Forum Support

Allowing syntax highlighting for namespaced HTML elements?

Allowing syntax highlighting for namespaced HTML elements?

Postby natecavanaugh on Fri Nov 18, 2011 3:09 pm

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:script>alert('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!
natecavanaugh
 
Posts: 13
Joined: Fri Sep 09, 2011 6:50 am

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 34 guests