Is there a way (plugin, option, or tip and trick) to highlight html syntax in a js string?
My document is .JS file, in which I use strings containing html code. Is i
OMG , after 3 hour research i find !!!!!
https://marketplace.visualstudio.com/items?itemName=Tobermory.es6-string-html
befor
after
enjoys
The extension that you suggested requires that you prefix your strings with a comment like /*html*/
or html
. I'm working with Angular, and I didn't want to go through all my templates to prefix them, so I found this extension that does it automatically without prefixes:
https://marketplace.visualstudio.com/items?itemName=natewallace.angular2-inline
It is included in the Angular Essentials package by John Papa:
https://marketplace.visualstudio.com/items?itemName=johnpapa.angular-essentials