Removing extra linebreaks and spaces in Dreamweaver

Removing extra linebreaks and spaces in Dreamweaver

Ever been coding and looked at the source in your favourite browser and wondered why so much white space and empty lines were present.

How to remove extra spaces in dreamweaver

  1. While the document is open in Dreamweaver, press CTRL+F to load the Find & Replace dialog box. Do the search on the source code view.
  2. Check the box “Use regular expression” and uncheck any other boxes.
  3. Find: [\r\n]{2,}
  4. Replace: \n
  5. Then hit “replace all”

And that’s it!

Share this post

Leave a Reply

Your email address will not be published. Required fields are marked *