PHPStorm中PHP文件的错误语法突出显示
我不知道发生了什么,但一个 php 文件的语法突出显示停止工作,并且文件旁边的图标也发生了变化.它显示它是文本文件而不是 PHP.
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 ?
推荐答案
转到设置|文件类型并确保此特定文件名未分配给非 PHP 文件类型,即纯文本.
Go to Settings|File types and ensure that this particular file name is NOT assigned to non-PHP file type, i.e. Plain Text.
相关文章