Skip to content
Create a gist now

Instantly share code, notes, and snippets.

CoffeeScript, Jade and Stylus syntax highlighting in Sublime Text 2

Step 1: Clone the bundles into your Sublime Text packages directory

cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript
git clone https://github.com/miksago/jade-tmbundle.git Jade
git clone https://github.com/LearnBoost/stylus.git Stylus

Step 2: Restart Sublime Text 2

If it hasn't worked, try closing and reopening any saved tabs.

@ptdorf
ptdorf commented May 11, 2012

For EJS:
git clone git://github.com/gregory-m/ejs-tmbundle.git EJS

@ForbesLindesay

Preferecnes > Browse Packages gets you to the right directory in windows. [AppData]\Roaming\Sublime Text 2\Packages

@darinh
darinh commented Sep 28, 2012

Thanks! (:

@jonki
jonki commented Dec 17, 2012

Awesome, thanks!!! :)

@nskeip
nskeip commented Mar 1, 2013

thanks!
used this gist to get sublime coffee highlighting at ubuntu

@hallizh
hallizh commented Apr 9, 2013

Thanks!

@phungnc
phungnc commented Apr 13, 2013

Thanks

@richhollis

Awesome. On Ubuntu/Mint the folder was: /home/USERNAME/.config/sublime-text-2/Packages - I used Browse Packages and then "Find in folder" and read out the Where field.

@ericfish
ericfish commented Jun 2, 2013

This works good for set syntax in sublime text 2. Thanks

@StanBoyet

Works like a charm on Sublime Text 2 on Mac OSX 10.8.4

Thx :)

@zerokol
zerokol commented Jul 10, 2013

Perfect. On ubuntu is on ~/.config/sublime-text-2/Packages/

@a4anishm

THanks!

@danielsvane

Im having problems with the coffeescript url, used the https one to get it working

git clone https://github.com/jashkenas/coffee-script-tmbundle.git CoffeeScript
@zjwhitehead

Thanks. Just confirmed it works on Ubuntu 13.04 with Sublime Text 3 (build 3047)
the directory was as @richhollis mentioned at ( /home/USERNAME/.config/sublime-text-3/Packages)

@atomicframeworks

Worked perfectly. Thanks!

@jescott
jescott commented Dec 22, 2013

Thanks - new Mac OSX Mavericks users with Sublime Text 3 Go to: /Users/"username"/Library/Application\ Support/Sublime\ Text\ 3/Packages

@Phazz
Phazz commented Jan 8, 2014

Thanks love it !

@iamjeannie

Works great !! thank you :-)

@BattleBrisket

If you are using Sublime on Windows 7, you'll want to clone into

C:\Users\[YOUR_USERNAME]\AppData\Roaming\Sublime Text 2
@regissoares

Better than to install manually is install Package Control: https://sublime.wbond.net/

@TimWagner

Wow, much better :) Thanks a lot for sharing!

@saqib-nadeem

Great :)

@juandefelix

It Works!!

@raduluchian

Excellent, works great for Sublime Text 3 on Windows 8.1! Just downloaded the Jade ZIP from GitHub and unzipped it in the packages folder (Preferences > Browse packages). Restarted Sublime and voila!

@zzz6519003

Thanks

@bobmeister

Works like a champ. Thanks!

@fitzryland

Perfect. Thanks.

@garyhussey

Thanks for the Gist, Feel dumb for not thinking to do this myself before using the package manager.

@paraggupta1993

Thanks a lot !

@vajapravin

Cool. Thanks.

@winnemucca

lost my syntax highlighting with jade when i did the sublime text 3 update. It is still installed but i cannot figure out what is wrong.

@RosSantoro1

thank you very much!! :)

@maereed
maereed commented Sep 21, 2014

Thank you! This will make life so much easier! :)

@diliaur
diliaur commented Oct 10, 2014

Thank you! Works on Sublime Text 2 on OSX 10.9.4 :)

@juanortizthirdwave

Works, perfectly!

@gingerwilliams

Boom! Thanks

@bl4ckdu5t

I hoped I wouldn't have to close the tab and re-open for my .coffee but I think that was just necessary to get it working. Thanks!

@michliga

Works perfect, thank you!

@anantzoid

Thanks a ton :smile:

@AndrewWang996

LearnBoost has apparently been acquired by another company, so the new link for Stylus is https://github.com/stylus/stylus

@Karatsuba

works nice with ST3 on Ubuntu 14.04!
thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.