How to remove space between lines in Adobe Dreamweaver

So, you want to remove those lines your code that makes your 500 line script span to 2000. Try this neat trick in Adobe Dreamweaver or any IDE that supports Regular Expression.

  1. Open the file
  2. Click CTRL + F
  3. Select “Current document” in “Find in” (You can also select the folder if you have multiple files)
  4. Search in “Source code”
  5. Tick “Use regular expression”
  6. Type “[\r\n]{2,}” (without quotes) in “Find”
  7. Type “\n” (without quotes) in “Replace”
  8. Press “Replace All”

As simple as that and it works.

Source: http://forums.digitalpoint.com/showthread.php?t=622323

B4uCode

I am a passionate PHP user with a love for Open Source systems. With a few years of programming these technologies, I am fortunate to be able to share my thoughts. Joomla and WordPress are my favorite systems to develop. That's enough for now.

You may also like...

Leave a Reply

Your email address will not be published.