Whats the difference between highlighted lines

Can someone tell me whats the difference between the echo line not highlighted green and the echo line highlighted in green?
What wants phpStorm tell me with the green highlight?
How do I prevent this? Is something wrong coded?
Bildschirmfoto 2013-12-14 um 21.42.28.png

4 comments
Comment actions Permalink

Hi there,

Green highlighting means Language Injection (HTML flavor in your case). In such fragments you will have inspections/code completion specific to the injected language.

Automatic injection rules can be configured at "Settings | Language Injections". Manual injection of ANY language can be done at any time on any string -- Alt+Enter while standing on such string and choose "Inject Language" from appeared menu.

The 1st echo is not highlighted because Language Injection does not work when merging the string from multiple fragments ( http://youtrack.jetbrains.com/issue/WI-534 )

Bit more details:

0
Comment actions Permalink

thanks, I got it.
But it's a bit confusing and I think it does not increase the readability of the code. The injection is cool for codecompletion etc. but can I edit the highlighting?

0
Comment actions Permalink
but can I edit the highlighting?

What exactly you want to edit.


Injected HTML will use the same colors as "normal" HTML. Same for other languages.

If question is about "green background" -- of course: Settings | Editor | Colors & Fonts | General | Injected language fragment

P.S.
Hint: Settings screen has nice search feature (input box on top left corner) -- very useful for finding different kinds of settings.

0
Comment actions Permalink

yea I meant the green background.
I got it to work. Thank you very much for yout help :)

0

Please sign in to leave a comment.