在Editplus中删除空行

PHP代码在dreamwaver中编辑后,多出了不少空行,煞是烦恼。Google了一下解决方案,发现真是麻烦:http://junsheng.itpub.net/post/860/43384

找到了一个非常简单的方法解决这个问题:

  1. 使用查找替换(Ctrl+H),然后选择”more”选择标签;
  2. Find what: 三个空行,即三个回车;Replace with: 两个空行;
  3. 替换。

这样,轻松替换掉没有用的空行。

2 Responses for 在Editplus中删除空行 :

1: 2008-01-12, 21:49, Alucard says:

Ctrl + H

Find what: ^[\n]+
Replace with: \n

选中 “Regular expression”

Alt + H

2: 2008-01-24, 9:42, xiaop says:

@Alucard: 你的方法也非常不错。

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>