pushqrdx / vscode-inline-html

🎨 Adding Syntax Highlighting, Emmet, IntelliSense support for ES6 Template Strings in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=pushqrdx.inline-html
GNU General Public License v3.0
54 stars 15 forks source link

Support for HTML files #3

Open Haprog opened 5 years ago

Haprog commented 5 years ago

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 5 years ago

Maybe I can somehow manually enable this in HTML file context by configuring VS Code? Can I?

Haprog commented 5 years ago

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

pushqrdx commented 5 years ago

@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.