Syntax Highlighting Within HTML Attributes
Closed this issue · 2 comments
cgilmore commented
When using dynamic blocks within an attribute (inside the quotes, ""
), the block takes on the scope of an HTML string, specifically string.quoted.double.html
. For example:
<input value="{{ old('title', '') }}">
The block inside the value attribute, {{ old('title', '') }}
, is all the same color, as if it were a string.
I've attached an image that shows how it's rendered in VSCode (on top) and in Sublime (on bottom).
I know these examples use Adonis specific view helpers but thought I could use them as an example of the issue.
Thanks!
duyluonglc commented
@sikthought check v0.2
cgilmore commented
Awesome!