手机浏览 RSS 2.0 订阅 膘叔的简单人生 , 腾讯云RDS购买 | 超便宜的Vultr , 注册 | 登陆
浏览模式: 标准 | 列表2010年10月13日的文章

杂七杂八:editplus and netbeans

Editplus和netbeans是什么我想不用详细介绍了吧。一般做PHP开发的人,几乎都了解这两个玩意。
Editplus是韩国人开发的,Netbeans是Sun的产品。

先说Netbeans吧,嗯,他们的东西还算不错,只是让我们写PHP的人郁闷的是,它没有自动换行(line wrap),所幸,6.10开始,这个功能已经被加进去了。现在用6.10M1的版本都可以进行尝试,但在尝试前,请记住(扫描项目的时候,不要设置换行,否则80%的机率会让你的NB爆掉)。

官方这样解释:

XML/HTML代码
  1. Guys from editor infrastructure asked me to help him to test new editor infrastructure that brings up also line wrapping features. Probably you remembered that this feature was enabled during NetBeans 6.9 development, but because it introduced many problems and there wasn't time to stabilize it enough, it's not in NetBeans 6.9 available.   
  2.   
  3. We would like to stabilize the new infrastructure as much as possible before it will be switch on to be be available by default.You can enable the feature in development build through command line option: -J-Dorg.netbeans.editor.linewrap=true . Do it only with a development build, even if the optoin works in NetBeans 6.9, the new infrastructure is not stable enough there.  
  4.   
  5. So I would like to ask you, if you use a latest development build, run the build with the mentioned option. You can start NetBeans from command line with the option or place the option in the ${nb_dir}/etc/netbeans.conf file (add into netbeans_default_options).  
  6.   
  7. When you started NetBeans with this, there should be Line Wrapping option in the formatter.  
  8.  大小: 51.28 K
尺寸: 500 x 315
浏览: 1622 次
点击打开新窗口浏览全图 
  9. When you find out an issue with it, please report it in our Bugzilla. For such issue the product should be Editor, component Painting & Printing and please mark all reports with the status whiteboard: linewrap so we can easily track them. The tentative plan is to enable this again for M1 of NetBeans 6.10 but this all depends on the additional feedback and testing.  
所以昨天我换过了新版本进行了尝试。只是效果没有想象中的那样好。但,总比不能换行好。这是实际效果:

大小: 8.68 K
尺寸: 290 x 181
浏览: 1601 次
点击打开新窗口浏览全图

只是换行后多了一个回车显示着而且不能消失,看起来有点挫。。

接下来说Editplus,昨天晚上,乔大姐(HonestQiao,乔楚)兴冲冲的在群里说,Editplus支持PCRE的正则了,大家快更新啊,不更新会后悔的。。于是到官方看了一下changelog,然后进行了更新。

再接下来就测试,结果,让人大吃一斤的是,有很多正则条件输进去,立刻就把Editplus给爆了,比如:?\d、.*+?之类的,还有就是.*能够匹配一行,.*?一个也不能匹配。

不过简单的正则匹配还是没问题的(如果你升级了该版本,建议你在正则搜索前,先保存你的代码,否则可能会想哭但是哭不出来)

官方的changeLog: 'Use TR1 regular expression' option ('Preferences'->'General').

据说,最后乔大姐忍不住发邮件去鄙视那位开发者了。

Tags: editplus, netbeans