new user: How to recognize php-code or html-code in a file with other file extensions
Hello
I'm just testing phpstorm for my needs.
I have a lot files ( templates) that contain html, php and javascript.
How can I force phpStorm to recognize these languages in a file, that has a complete different fileextension.
I found no hint in the documentation.
Piet
Please sign in to leave a comment.
Hi Peter,
In order for PhpStorm to recognize PHP code in some file, such file must be associated with "PHP files" file type. For this:
PHP file in PhpStorm is treated as HTML file (HTML = HTML + JS + CSS) + inclusion of PHP code.
Please NOTE: "Settings | File Types" is IDE-wide setting and will affect ALL projects.
Same kind of story with HTML/JavaScript code: