mogga / sublime-nunjucks

Sublime Text syntax for Nunjucks template language
26 stars 28 forks source link

Add '.njk' file type support. #11

Open mrself opened 8 years ago

mrself commented 8 years ago

Although you are free to use any file extension you wish for your Nunjucks template files, the Nunjucks community has adopted .njk.

Nunjucks official docs

gxcodes commented 8 years ago

Yes, I'm currently working with adonisjs which produce view templates with .njk extension. Adding this support will be very helpful.

DJviolin commented 7 years ago

I edited https://github.com/andres-risso/sublime-nunjucks cloned repo (which is works with ST3) to include .njk file support for myself: https://github.com/DJviolin/sublime-nunjucks

Feel free to use it if you want.

connor11528 commented 6 years ago

@DJviolin I am getting an error downloading your package when I open sublime:

Error loading syntax file "Packages/Nunjucks Syntax/Nunjucks.tmLanguage": Wrong type for key begin expected string
DJviolin commented 6 years ago

Sorry, I'm not maintaining anymore with latest Sublime text versions. I switched to VS Code long ago.

connor11528 commented 6 years ago

Okay cool, vs code has njk highlighting? heard a lot of good things..

https://twitter.com/Connor11528/status/924672676387479552

DJviolin commented 6 years ago

Off topic, but yeah, It's great. Much more solid then Atom and doesn't have any performance issues (this kept me to use Sublime when I started with Atom).

I use this extension for Nunjucks: https://marketplace.visualstudio.com/items?itemName=ronnidc.nunjucks

It's based on this extension.