Try netbeans, go to Tools > Options find tab Miscellaneous > Files. Choose your Extension or click new. Remember insert ignored files pattern should be insert, if not you will get error syntax.
在 Facebook,我们有时会使用 SublimeText 或 Textmate。两者本质上都支持 XHP。他们不一定理解它,但他们不认为它是无效的语法。据我所知,Facebook 没有人构建任何 IDE 扩展来更好地处理语法,很可能是因为我们确实使用
At Facebook we sometimes use SublimeText or Textmate. Both somewhat inherently support XHP. They don't necessarily understand it, but they don't consider it invalid syntax. As far as I know no one at Facebook has built any extensions to IDEs to handle the syntax better, mostly likely because we do use
I just searched the JetBrains website for this feature (in PHPStorm): They say it is very complex to provide this and so it will not come soon ( http://youtrack.jetbrains.com/issue/WI-1208 ). I think that will be the same on all other major IDEs.
What comes into my mind: Emacs. I've just started to learn Emacs because of the possibility to extend it a very easy way, just for DSLs like XHP (which is indeed an embedded DSL). Here's a good tutorial for Emacs http://david.rothlis.net/emacs/howtolearn.html.
I doubt this will work with the Cloud9 IDE but they accept user given features all the time.
I requested syntax highlighting for 2 languages, and now they are both supported.
Give it a try.
发布评论
评论(6)
尝试 netbeans,转到
Tools
>Options
查找选项卡Miscellaneous
>文件
。选择您的扩展
或单击“新建”。请记住应插入插入忽略的文件模式
,否则您将收到错误语法。Try netbeans, go to
Tools
>Options
find tabMiscellaneous
>Files
. Choose yourExtension
or click new. Rememberinsert ignored files pattern
should be insert, if not you will get error syntax.这个线程很老了,但我希望这可以帮助其他人!
我在 aptana studio3 中尝试了代码并且有效!
this thread is pretty old, but I hope this can help somebody else!
I tried the code in aptana studio3 and works!
在 Facebook,我们有时会使用 SublimeText 或 Textmate。两者本质上都支持 XHP。他们不一定理解它,但他们不认为它是无效的语法。据我所知,Facebook 没有人构建任何 IDE 扩展来更好地处理语法,很可能是因为我们确实使用
At Facebook we sometimes use SublimeText or Textmate. Both somewhat inherently support XHP. They don't necessarily understand it, but they don't consider it invalid syntax. As far as I know no one at Facebook has built any extensions to IDEs to handle the syntax better, mostly likely because we do use
我从未使用过这个扩展,我只是将您的代码粘贴到 PHPDesigner 7 的 PHP 页面中,并且它并不认为这是一个错误。
我就是喜欢这个应用程序:http://www.mpsoftware.com/
尝试一下,看看它是否适合您需要。
I never used this extension I just pasted your code in a PHP page in PHPDesigner 7 and it did not considered it an error.
I just love this app: http://www.mpsoftware.com/
Try it and see if it suits your needs.
我刚刚在 JetBrains 网站上搜索了此功能(在 PHPStorm 中):他们说提供此功能非常复杂,因此不会很快推出( http://youtrack.jetbrains.com/issue/WI-1208)。我认为这在所有其他主要 IDE 上都是一样的。
我想到的是:Emacs。我刚刚开始学习 Emacs,因为可以以一种非常简单的方式扩展它,仅适用于像 XHP 这样的 DSL(这确实是嵌入式 DSL)。这是一个很好的 Emacs 教程 http://david.rothlis.net/emacs/howtolearn.html。
I just searched the JetBrains website for this feature (in PHPStorm): They say it is very complex to provide this and so it will not come soon ( http://youtrack.jetbrains.com/issue/WI-1208 ). I think that will be the same on all other major IDEs.
What comes into my mind: Emacs. I've just started to learn Emacs because of the possibility to extend it a very easy way, just for DSLs like XHP (which is indeed an embedded DSL). Here's a good tutorial for Emacs http://david.rothlis.net/emacs/howtolearn.html.
我怀疑这是否适用于 Cloud9 IDE,但他们始终接受用户给定的功能。
我请求两种语言的语法突出显示,现在它们都受到支持。
尝试一下。
官方网站:https://c9.io/
Github 网站:https://github.com/ajaxorg/cloud9
功能请求:http://support.cloud9ide.com/forums/20010046-feature-requests
I doubt this will work with the Cloud9 IDE but they accept user given features all the time.
I requested syntax highlighting for 2 languages, and now they are both supported.
Give it a try.
Official site: https://c9.io/
Github site: https://github.com/ajaxorg/cloud9
Feature requests: http://support.cloud9ide.com/forums/20010046-feature-requests