atom-jinja2 icon indicating copy to clipboard operation
atom-jinja2 copied to clipboard

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

Open dflock opened this issue 8 years ago • 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.

dflock avatar Mar 11 '16 18:03 dflock

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)

jesseops avatar Feb 20 '17 20:02 jesseops