visual studio code - syntax highlighting for html strings?

僤鯓⒐⒋嵵緔 提交于 2019-12-06 01:54:04

问题


I've been trying to solve this problem for 3 days already but I can't seem to find any extension to have syntax highlighting for strings that used backticks(I don't know what is the general term for this kind of strings). But if there are no extensions to enable syntax highlight for this kind of strings, is there any settings for vscode that enables me to syntax higlight?


回答1:


To follow-up on Matt Bierner's previous answer.

You should use this Visual Studio Code extension:
angular2-inline

This extension replaces the language-vscode-javascript-angular2 extension.

here is the extension page with the how to install
https://marketplace.visualstudio.com/items?itemName=natewallace.angular2-inline




回答2:


I'm on the VSCode team, and this is not something that we currently support. Here's the feature request tracking this.

In the meantime, try out the language-vscode-javascript-angular2 extension. It adds syntax highlighting for html elements inside of template strings.



来源:https://stackoverflow.com/questions/40985912/visual-studio-code-syntax-highlighting-for-html-strings

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!