I use this VS Code plugin that adds syntax highlighting to angular html templates.
To further enhance to color it specifically purple, you'll have to tweak your theme or editors textMateRules
settings.
In your settings.json
:
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"scope": [
"expression.angular-interpolation",
"source.directive.angular"
],
"settings": {
"foreground": "purple" // or use your desired hex code
}
},
]
},
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.