I wanted to solve the problem with the tips, installed an additional plugin from this article https://github.com/dmarcotte/idea-handlebars/issues/84

Hey @ hawkin29, it’s not like it’s not included. Checking the Preferences -> Plugins and Make-It-Yourself Plugin Installed Check (Preferences-> File Types) (for instance, if your filename is "myfile.hbs", then ensure that "* .hbs" is listed for Handlebars / Mustache) If not, we'll try something else!

The only cant is that when I "added" the .php extension, then its PHP was not in the drop-down box, so I simply stupidly hammered into the first line "* .php", which naturally did not work. Then I deleted this line and took down the plugin, but everything went completely differently than I expected, and now everything is displayed completely crooked. Help me please. Problem screenshot

  • You now have the extension *.php associated with text files. You need to add *.php to the list of patterns registered for PHP type - lena

1 answer 1

Go to

File> Settings> Editor> File Types

At the top right in Recognized File Types select PHP and at the bottom, add *.php in Registered Patterns *.php

  • Thanks for the comprehensive answer! - turutum Nov.