Open code-tree opened 7 years ago
Hey @code-tree thanks for the suggestion. I need to ask a clarifying question before making any conclusions or changes. Here's what I'm interpreting from your comment:
You would prefer that nunjucks inserted as html attributes be visually different from other, non-nunjucks html attributes. In other words, using your example, you want'description'
and {{ desc }}
rendering in different colors. One final question – are you imagining that {{ title }}
and {{ desc }}
should render in the same color?
Yes, that's correct to both. As currently, it seems as though the value in content="{{ desc }}"
is simply a static string, when in fact it will be replaced by nunjucks.
I assume this is just a matter of giving nunjucks grammar priority over the html grammar, but I wasn't sure how to do that.
Looking into this today.
This is a biggie.. Currently good part of syntax highlighting does not happen because of this. For example, this is very apparent when coding inline HTML:
I came here investigating what could be done enable proper syntax highlighting.
Syntax highlighting doesn't work when brackets are inside an opening tag or its attributes.
(nunjucks syntax is highlighted as red)