Php inspections on .htm file
Hello everyone, I did some configurations on my apache so .htm files will be treated as .php files, My problem is that when phpstorm open .htm/.html files it uses the html Inspections even if i got php code inside, So what i was trying to do is to set phpstorm to use both inspections (HTML Inspections and Php Inspections) on .htm/.html, For example when phpstorm open .php files it uses both HTML inspections and Php inspections, What i want to do it to enable phpstorm to use both inspection also on .htm/.html files, Thank you all and have a nice day.
Please sign in to leave a comment.
Hi there,
You need to tell PhpStorm to treat .htm files as PHP files. For that:
Please note: The "File Types" is IDE-wide setting and will affect ALL projects.
In my opinion, the better approach here would be:
Thank you Andriy, Also for your solutions, Have a nice day.