Sublime Forum

Syntax highlighting of a specific section within a document

#1

Is there a way that I could tell ST to use a certain type of syntax coloring in a particular section of a document? For instance, I have an .aspx file that contains some JavaScript wrapped with a tag. I want everything in between the tags to be highlighted as a JavaScript file. Is this doable?

0 Likes

#2

Yeah, it’s doable dude. Take a look at the HTML/HTML.tmLanguage and check G’s docs here: sublimetext.info/docs/en/extensi … xdefs.html

I you still need help in the morning (now+10hr … whatever now is … heh) I’ll give you a hand. It’s a topic I’m interested in at the moment.

But now I got to crash out.

0 Likes