Support for HTML files
Haprog opened this issue · 3 comments
Haprog commented
Add support for HTML files.
It would be nice if the html template literal was syntax highlighted also within a script in an HTML file (like in HTML imports of Polymer 2 components).
For example:
...
<script>
const foo = html`<p class="bar">foo</p>`;
</script>
Haprog commented
Maybe I can somehow manually enable this in HTML file context by configuring VS Code? Can I?
Haprog commented
Maybe you could add a configuration option so that this can be manually enabled for other filetypes? Maybe something similar to how you can specify extra filetypes for Emmet support using a configuration option called emmet.includeLanguages
: https://code.visualstudio.com/docs/editor/emmet#_emmet-abbreviations-in-other-file-types