Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Nunjucks (.njk) #1124

Closed
sanorama opened this issue Mar 31, 2017 · 4 comments
Closed

Support for Nunjucks (.njk) #1124

sanorama opened this issue Mar 31, 2017 · 4 comments

Comments

@sanorama
Copy link

sanorama commented Mar 31, 2017

Nunjucks is obviously not supported but is there any way to highlight njk syntax?

https://mozilla.github.io/nunjucks/

@Golmote
Copy link
Contributor

Golmote commented Mar 31, 2017

Hi! The Twig highlighting should do a decent job.

@sanorama
Copy link
Author

worked like a charm, thank you

@francisbarton
Copy link

twig didn't work well for me - I used liquid instead and this seemed to work better.

@LeaVerou
Copy link
Member

Note that you can alias njk to liquid, so that if eventually a Nunjucks-specific language definition comes along, your content is ready for it:

Prism.languages.njk = Prism.languages.liquid;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants