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 file in Notepad++ text editor

In the option for the file type i don't see jade or pug as an option. Will it still understand that it is a jade or pug file by me just typing index.jade or do I have to pick another text editor that has jade or pug as a file type.

1 Answer

Any text editor should work with any file type. In your case, yes, just name the file index.jade and it should operate in the way you want it to. However, in order for syntax highlighting to work for Jade or Pug, you may need to download a package or plugin for your editor in order for it to be able to do syntax highlighting for a Jade or Pug file. Most text editors come with syntax highlighting for common languages like HTML, CSS, JS, PHP, etc. But less common languages, like the templating languages you are trying to use, usually require an additional package to be installed.

Hope that helps and let us know if you need any more help or clarification.

Thanks so much. I googled a package for the highlighting and attempted to install it on notepad++ but it doesn't work. Do you know any links to a plugin that works?

Try this: https://github.com/sorensen/jade_npp

Make sure to follow the instructions listed in the README file. You may need to quite Notepad++ and reopen it in order for the changes to be reflected.