Home Download Buy Blog Forum Support

Defining a link as a separate syntax zone?

Defining a link as a separate syntax zone?

Postby handycam on Thu Jan 19, 2012 7:46 pm

I'd like to color A tags and their attributes differently from other inline tags.

In other words
Code: Select all
<a href="http://google.com>Google</a>


How?
Mac OS 10.9.3
ST 3 (3059)
handycam
 
Posts: 271
Joined: Tue Jan 03, 2012 2:42 pm

Re: Defining a link as a separate syntax zone?

Postby nick. on Fri Jan 20, 2012 12:30 am

Syntax highlighting is handled by the color scheme, which is a .tmTheme file. However, depending on how advanced you'd like to get, you may need to also modify the language parser, which is a .tmLanguage file. Have a look at Sublime's syntax definitions or the more detailed/advanced Textmate's language grammars.
nick.
 
Posts: 266
Joined: Wed Jan 18, 2012 3:45 am


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot], Roflhouse42 and 38 guests