Home Download Buy Blog Forum Support

Syntax highlighting of a specific section within a document

Syntax highlighting of a specific section within a document

Postby rjv on Tue Feb 07, 2012 3:57 pm

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 <script> tag. I want everything in between the <script> tags to be highlighted as a JavaScript file. Is this doable?
rjv
 
Posts: 5
Joined: Mon Dec 05, 2011 4:11 pm

Re: Syntax highlighting of a specific section within a document

Postby sublimator on Tue Feb 07, 2012 4:50 pm

Yeah, it's doable dude. Take a look at the HTML/HTML.tmLanguage and check G's docs here: http://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.
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 648
Joined: Thu Mar 20, 2008 5:41 am


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], valerij_, Yahoo [Bot] and 25 guests

cron