Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 243
Bryce Johnson Avatar asked Dec 31 '15 03:12

Bryce Johnson


People also ask

Does WebStorm work with TypeScript?

With WebStorm, you can run and debug client-side TypeScript code and TypeScript code running in Node. js. Learn more from Running and debugging TypeScript.

How do I run an HTML project in WebStorm?

From the main menu, select File | New, and then select HTML File from the list. WebStorm creates a stub file based on the HTML file template and opens it in the editor.


1 Answers

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.

like image 62
Bryce Johnson Avatar answered Oct 21 '22 10:10

Bryce Johnson