Webstorm:如何扩展以处理PHP文件甚至只是正确地突出显示代码? [英] Webstorm: how to extend to handle PHP files or even just highlight code correctly?

查看:134
本文介绍了Webstorm:如何扩展以处理PHP文件甚至只是正确地突出显示代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试过这个IDE,我喜欢它。唯一的问题是,如果我在一个项目中有一些PHP,它很容易看到纯黑色文本而不是正确的PHP突出显示。

I tried this IDE and I like it. Only problem is that if Im in a project that has some PHP in it, its confusing to see plain black text instead of correct PHP highlight.

我不需要残酷的PHP自动完成功能,但语法高亮。是否有可能在Webstorm中实现?

I dont need brutal PHP autocomplete or so, but a syntax highlight. Is it possible to achieve in Webstorm?

或唯一的选择是使用PHPStorm?

Or the only option is to use PHPStorm?

推荐答案

更新:由于TextMate捆绑支持已添加到IDE,因此如果有TextMate捆绑包,则可以向IDE添加任何语言语法突出显示。 请参阅我关于添加Ruby突出显示的回复,对于PHP来说它是相同的,只是不同的捆绑包。

UPDATE: since TextMate bundles support was added to the IDE, you can add any language syntax highlighting to the IDE if there is TextMate bundle for it. See my reply about adding Ruby highlighting, it would be the same for PHP, just the different bundle.

您最好的选择是使用 PhpStorm 。另一种选择是创建自定义文件类型以获取基本语法突出显示。

Your best option is to use PhpStorm. Another option is to create your custom file type for basic syntax highlighting.

这篇关于Webstorm:如何扩展以处理PHP文件甚至只是正确地突出显示代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆