Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

phpstorm

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.

like image 413
bernk Avatar asked Dec 13 '12 16:12

bernk


People also ask

How to make HTML in PhpStorm?

Create an HTML file From the main menu, select File | New, and then select HTML File from the list. PhpStorm creates a stub file based on the HTML file template and opens it in the editor.

How to make a New project in PhpStorm?

On the PhpStorm Welcome screen, click New Project. Select PhpStorm Workshop Project from the list on the left, provide the project location in the Location field, and click Create.


1 Answers

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

like image 98
LazyOne Avatar answered Oct 19 '22 10:10

LazyOne