My most current HTML/CSS/TS project is being done with HTML components. And, in that context, it's pretty common to use strings to set up the inner HTML of components. So we have stuff like this everywhere:
this.innerHtml = `
<p>Blah blah</p>
`
Since the syntax highlighter only sees a string, everything within it is typically green or whatever other color. But I wish there was a way of making it highlighted as HTML code. Is there a way? Is there maybe a VS Code Extension for it?
I imagine a VS Code Extension could work by putting a comment on the line before (or two) the HTML code, something like this:
// extension:begin:html
this.innerHtml = `
<p>Blah Blah</p>
`
// extension:end