在Editplus中删除空行
PHP代码在dreamwaver中编辑后,多出了不少空行,煞是烦恼。Google了一下解决方案,发现真是麻烦:http://junsheng.itpub.net/post/860/43384
找到了一个非常简单的方法解决这个问题:
- 使用查找替换(Ctrl+H),然后选择”more”选择标签;
- Find what: 三个空行,即三个回车;Replace with: 两个空行;
- 替换。
这样,轻松替换掉没有用的空行。
- July 30, 2007
- Comments(2)
- Posted in Coding
Ctrl + H
Find what: ^[\n]+
Replace with: \n
选中 “Regular expression”
Alt + H
@Alucard: 你的方法也非常不错。