As I am creating websites I sometimes come across situations that require a more than basic knowledge and a bit of research to figure out.
I don’t use Dreamweaver as my primary code editor but when it comes to its search & replace functionality it’s great. Here’s a helpful hint regarding removing blank lines from an html file using dreamweaver, should you ever want to do that without having to manually delete the lines…
- 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 “[\r\n]{2,}” (without quotes) in “Find”
- Type “\n” (without quotes) in “Replace”
- Press “Replace All”
That’s it. Have fun.