Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHPStorm Configuration: How to remove background color on embedded html?

I find this "code highlighting" very annoying. Can someone show me how to disable it on PHPStrom, and perhaps explain why this happens?

Here's an image of my Js/Jquery code on PHPStorm IDE: enter image description here

like image 710
CodeGodie Avatar asked Jun 30 '15 19:06

CodeGodie


1 Answers

In the WebStorm preferences go to Editor » Color & Fonts » General choose Injected language fragment from the list and turn off Background chackbox.

It's hard to answer _why it happens) - it's just a preference. Maybe someone prefers to see injected code (the code in language other than the main one used in given file) clearly marked. For me, it's also a distraction, I have just turned it off inspired by your question ;)

like image 104
Tomek Sułkowski Avatar answered Sep 18 '22 13:09

Tomek Sułkowski