I'm new: Why php code is seen as "simple" text.
Hi!
I'm new on using phpStorm and I'm really happy using it! Yesterday i got an issue and I'm not sure why it is... Basically typing a php code inside an HTML doc sometimes is seen as simple text and not processed.
See these images:
Same code updated:
as you can see the first <?php require... is correct the second one (in cyan color inside the DIV block) is not processed!
I've also noticed if I try to copy/paste php code in this block i have an empty paste (!) but if I di a "paste simple" command the text is pasted ( as simple text).
Here another test:
If I run the script it works and no errors occured.
What I'm missing on phpStorm ?
Thanks for any suggestion!
Please sign in to leave a comment.
Hi there,
Please show screenshot of your "Settings/Preferences | Editor | Language Injections" -- you must have somehow created an injection rule that makes things messy.
Thanks for help!

This is my setting:
Just delete the entry that is selected (blue background) on your screenshot -- it injects JS into <div> tags making PHP treated as plain text(?).
Yes, thanks! It fixed!
Just a note: in meantime I installed phpStorm on laptop too and moved same project. I had all working perfectly with... same setting as previous pict ( all checked boxes).