Strange color formatting with the code

I see strange color formatting with PHP Storm. I am not sure why but, when there is a mix of PHP code with HTML code, it displays weird gray bars and other strange formatting elements on the screen. 

Is there a way to turn this off so it looks a little more normal?

Thanks! 

0
1 comment

Hi there,

Would be good if you would use Default or Darcula color schemas instead of some custom one...

In any case: so far it looks like standard Language Injection behaviour: your styles for actual HTML and PHP may have different background colors ... + injection fragment itself has background color (to give you indication that it's an injected fragment of another language here).

To start with: try removing background color for "Injected language fragment" style under "Settings/Preferences | Editor | Color Scheme | General | Code"

If still the same -- need more info. But try checking colors for HTML/XML (as they intersect (inherit) on some styles)

If it happens with only <li> elements (sorry, your screenshot shows limited HTML code so cannot provide many ideas) ... then you may simply have invalid/unwanted injection in <li> elements (but then -- it should also be visible in the same code in plain HTML file). Please post screenshot of "Settings/Preferences | Editor | Language Injections".

P.S. If you do not like Language Injections at all and prefer PHP strings to be plain strings .. then just disable all unwanted Language Injection rules.

0

Please sign in to leave a comment.