Wrong syntax highlighting for PHP file in PHPStorm

chubbyk picture chubbyk · Nov 29, 2010 · Viewed 46.4k times · Source

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 ?

Answer

Alexey Gopachenko picture Alexey Gopachenko · Jan 17, 2011

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