Syntax highlighting for .pug files

I noticed .jade files have syntax highlighting in the editor while .pug files do not.
The syntax differences look fairly minimal, https://github.com/pugjs/pug/issues/2305
Would it be easy enough to enable the highlighting for .pug files?

1 Like

Yeah it sounds like a small matter of editor language aliasing, i’ll look into it asap

thx!

1 Like

Deployed a fix, check it out :slight_smile:

2 Likes

Nice! That was fast :thumbsup:

Similarly, could we alias .hbs / .handlebars for HTML-ish syntax highlighting?

1 Like

Handlebars highlighting done too :slight_smile:

2 Likes

Do we have to do something to enable handlebars highlighting? For me everything in foo.hbs is black except for the brackets {{…}}. Or maybe I misunderstand what it does? I expect the file to be highlighted the same as HTML, with something added for the handlebars.

handlebars – Glitch https://glitch.com/edit/#!/thread-pickle?path=views/index.handlebars

1 Like

same. @etamponi any chance you guys can use the codemirror handlebars highlighter?

We’re looking into the cause of the problem, hope to get it fixed up soon!

1 Like

And handlebars code highlighting is fixed!

1 Like

amazing response time, thank you!

Continuing the list of desiderata for syntax highlighting of template languages: could we have some extensions to trigger jinjia-like syntax-highlighting? I tried .jinja, .jinja2, .twig, .django, .njk to no avail.

Thanks