Search code examples
phpstorm

Turn off highlights


I want to turn off PHPStorm's annoying highlighting for non-error related things.

enter image description here

I read their docs, which said to go to preferences->editor->inspections. I deselected all for SQL, yet I still get this green highlighting for no reason:

enter image description here

How do I disable this? It's quite distracting.


Solution

  • That's Language Injection in action.

    You can:

    • Remove/change background color at Settings (Preferences on Mac) | Editor | Colors & Fonts | General --> Code | Injected language fragment
    • Disable that particular injection rule altogether at Settings (Preferences on Mac) | Editor | Language Injections