Removing Extra Lines in Dreamweaver
I’m sure this would apply to other programs too, but I’m getting tired of extra blank lines after I FTP files PHP files back and forth. I found this on an old blog and thought it warranted re-posting. Simple little trick with Find/Replace.
- Open the file
- Click CTRL + F
- Select “Current document” in “Find in” (You can also select the folder if you have multiple files)
- Search in “Source code”
- Tick “Use regular expression”
- Type “[rn]{2,}” (without quotes) in “Find”
- Type “n” (without quotes) in “Replace”
- Press “Replace All”
And there you have it… works like a charm!
