Search code examples
phpstorm

How can I configure PhpStorm to highlight both HTML and PHP syntax in a .html5 file?


I have to use this IDE at work. I also have to work on Contao templates which use the html5 extension.

I just got PhpStorm to recognize those files as HTML, big win, but it would be great if it would know what's up inside too.


Solution

  • Assign *.html5 pattern to PHP Files in Settings/Preferences | Editor | File Types