Archive for the “Software” Category

When you connect your Adobe (Macromedia) Dreamweaver through FTP to your site, it is very convenient when editing and updating your live site.

One time at the office, my officemate encountered a tiny bit of problem, more like a hassle, when he download style.css from his live site to the Dreamweaver application. The program, adds additional lines on each of the code. So every time he download and update the file, Dreamweaver adds another white space line. This is problematic every time he updates the file, which made the file up to 12,000+ lines of code.

Here is how we removed the extra lines that appeared.

  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. The hit “replace all”

That’s it!

However, take note that this method will remove any existing white space on your code.

Another thing. When you download the file again, Dreamweaver will add another white space on your code. Messing it up again. This is because of encoding and server type.

This usually happens if you are using Dreamweaver CS3 and your are downloading a file from a Unix/Linux server to a Windows based local PC. To fix this…

  1. Inside Dreamweaver, click Edit on the menu.
  2. Then Preferences.
  3. Then Code Format.
  4. Then on the “Line Break Type” select “LF (unix)”
  5. Click Ok. Done!
Tags: Adobe, CS3, Dreamweaver, Macromedia, tip

Comments 6 Comments »