johnkors

John Korsnes

Sublime Text 2 and Jade Highlighting

| Comments

Since Sublime Text 2 does not support Jade syntax highlighting out of the box, you have to add the feature yourself. Adding Jade support is easy though. I found the following tip on StackOverflow. Sublime Text 2 supports the same format as TextMate when it comes to syntax definition files. First, navigate to the Sublime Text Packages folder, on OSX found at

1
/Users/{yourusername}/Library/Application Support/Sublime Text 2/Packages

Create a folder called Jade. Now download the syntax files into this folder, either by using Curl or just directly. One example is found here.

Downloading using Curl:

1
Curl -O https://raw.github.com/miksago/jade-tmbundle/master/Syntaxes/Jade.tmLanguage

Re-open any open Jade file in Sublime Text 2, and there you go. Quite easy.

Credits

Comments