Is there any Sublime package to syntax-highlight HTML inside JavaScript strings?
(Note the question is only about HTML inside JS strings, not syntax highlighting in general.)
Specifically I am writing Angular components using inline templates
angular.module('compMod', []).component('myComp', {
template: `<div>Some Text</div>`
});
and looking to highlight HTML syntax inside the ES6 template strings.
templateUrland link to a template file instead of using a template string.[JavaScript]tag. In the latest version ofJavaScript.sublime-syntax, template strings in backticks are marked as such, so it shouldn't be too difficult to import the HTML syntax there. They may or may not agree, but it's worth a shot.