Search code examples
phpstorm

A PHP script file doesn't have PHP syntax formatting


In my PhpStorm, the file index.php, doesn't look like a PHP script, but a plain text file. How can I fix it?

enter image description here


Solution

    • Settings | File Types | Text files
    • Find and remove unwanted pattern there -- I expect this to be index.php or very similar

    Similar SO questions: