8

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.

2
  • 2
    Assign *.html5 pattern to PHP Files in Settings | File Types Commented Dec 13, 2012 at 16:48
  • Thank you, that worked. If you provide that as an answer I'll this question as answered. Commented Dec 13, 2012 at 17:15

1 Answer 1

26

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

Sign up to request clarification or add additional context in comments.

1 Comment

I had an issue when tried to enable highlighting and formatting of php blocks inside .htm files. I've added *.htm pattern for php file type, and PhpStorm warned me, that the existing assignment will be removed. If proceed, PhpStorm can start adding .php extension "on top of " the existing filenames; In my case it helped using *.ht* pattern instead, it matches anything with extension starting from ht.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.