How to remove unnecessary space between lines of code in Dreamweaver
Have you ever noticed there is unnecessary space between the lines of your code in Dreamweaver?
Do you want to remove it and clean up the page?
Do the following:
- Open the file (e.g. HTML, PHP etc…)
- Click CTRL + F
- Select “Current document” in “Find in” (You also have the option to select the folder if you have multiple files)
- Search in “Source code”
- Tick “Use regular expression”
- Type “[\r\n]{2,}” (without the quotes) in “Find”
- Type “\n” (without the quotes) in “Replace”
- Press “Replace All”
That’s it, done.
