简体   繁体   中英

Highlight angular syntax in html template

Is there some addon for visual studio code, that will highlight angular syntax in html template? enter image description here

now it's just look so like a mess.

If you want proper syntax highlighting in your templates, the easiest way is to store your templates in their own files. This is what your example looks like in VSCode if you store that template in its' own .html file for example:

模板语法突出显示

That said, if you want to keep using inline templates, this plugin is what you are looking for.

Try this extension angular2-inline I been used and It's very good

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM