PHPStorm中PHP文件的错误语法突出显示 [英] Wrong syntax highlighting for PHP file in PHPStorm
本文介绍了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.
这篇关于PHPStorm中PHP文件的错误语法突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文