Can you help me to disable it?
I've tried Editor -> Color Scheme
, also Editor -> Inspections
... no success.
BTW, how can I change the highlight color of matched variables?
This happens because of the br
tag at the end of the string; PHPStorm considers the string to be some HTML markup and will apply any HTML styling to it. The background color change is the IDE's way of telling you "oh hey, this is in a different language than the one specified in the file extension of the current file".
To fix it, go in Settings
> Editor
> Color Scheme
> General
then extend the Code
list, and click on Injected language fragment
. From there you can uncheck the Background
checkbox to remove the coloring, or choose any other color you like.
Edit: to change the highlight color of matched variables, go in Identifier under caret
options in the same menu (there's two of them)
Appearance & Behavior
> Notifications
. I won't edit the answer to include this information as it is out of scope of the original question.
Commented
Aug 9, 2017 at 18:14