PHP script in .html file
已回答
We can use PHP script in a file with .html extension (for example index.html) by a simple modification in .htaccess file.
Therefore PHP support should be allowed in .html file and it should not display PHP script as error/bug. If someone do not like this feature, he should have option to deactivate this option in Settings.
请先登录再写评论。
Hi there,
Just associate *.html pattern with "PHP File" in "Settings/Preferences | Editor | File Types".
Obviously, all such files will now be treated as PHP (will have PHP icon etc) and this is IDE-wide change (affects all projects).
Worked. Thank you.