vscode-inline-html
vscode-inline-html copied to clipboard
Support for HTML files
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>
Maybe I can somehow manually enable this in HTML file context by configuring VS Code? Can I?
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
@Haprog sorry for the delayed response, github didn't notify me for some reason. I'll look into that asap. Embedding languages in vscode isn't that well documented, though for this one i don't think it would take much effort.