Php – Wrong syntax highlighting for PHP file in PHPStorm

idePHPphpstorm

I don't know what happened but syntax highlighting for one php file stopped to working and also icon next to the file has changed. It shows it's text file instead of PHP .

How can I fix that ?

Best Answer

Go to Settings|File types and ensure that this particular file name is NOT assigned to non-PHP file type, i.e. Plain Text.