简体   繁体   中英

How can I disable the highlighting of HTML contained in .js/.ts files in Webstorm?

I'm working with Angular 2, and Webstorm doesn't seem quite ready for the template to be sitting right there in the Typescript file.

Specifically, it's highlighting anything that goes between the tilde's (`).

The highlighting is really annoying!

In Webstorm, go to:

Settings > Editor > Colors and Fonts > General > Code > Injected Language Fragment

By default, it's assigned a background color. Just uncheck the box and it'll go away.

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