danielchatfield/atom-jinja2

Raw blocks should be highlighted as the output language, not a comment

Opened this issue · 1 comments

I think raw blocks should be highlighted as the output language.

For example, if the jinja template outputs an HTML file and is using HTML (Jinja Templates) highlighting, then {% raw %} ... {% endraw%} blocks should be highlighted as HTML.

Seconded. I'm using Flask + Polymer where my Polymer template is in a {% raw %} block so that I can take advantage of the template context elsewhere (for instance, dynamic URLs).

(Yes, I should eventually make these Polymer components static files)