Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

.jade (now .pug) syntax highlighting in sublime text

Does anyone know how to set up syntax highlighting for the .jade (now .pug) file extension in sublime text?

I can see Huston has it set up in his express basics video but he doesn't mention how.

I've tried installing package manager, sublimeLinter and pug-lint for sublime text but I'm unsure whether the linter handles error notification AND syntax highlighting or only errors. Not sure where to go from here.

1 Answer

I'm using a sublime text bundle for Pug by David Rios here.

There are instructions on the page if you're using Package Control, else you can manually install it with:

mkdir -p ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone https://github.com/davidrios/pug-tmbundle.git Pug

Just what i'm looking for, thanks :)