vscode-template-literal-editor
vscode-template-literal-editor copied to clipboard
Does this work with Javascript inside HTML file?
If you mean editing js template literals in html, it should work ok. But if you instead intend to edit html-embedded javascript code as a subdocument in a separate editor, you can configure a customized regex for html that marks only the javascript parts. You can use the regexes in package.json as inspiration for your config.
To do this change the html regex to (<script.*?>)([\s\S]*?)(</script>)
. Very useful for better js intellisense and when using script tags for custom templates.