Maintaining Line Breaks When Copying Code from

While helping people on, I tend to have issues copying code from their forum and pasting it into Dreamweaver. For some reason all the line breaks are removed from the code. As much as I love manually adding dozens of line breaks back into the code, there has to be a quicker solution.

For those using Microsoft Windows, you may have a software application called WordPad. Mine is located in the Start menu under All Programs > Accessories. With this application, all you need to do is

  1. Copy the code from PHPFreaks
  2. Paste it into WordPad
  3. Copy it from WordPad
  4. Paste it into Dreamweaver

As far as I can tell there isn't anything special about WordPad other than it maintains the line breaks when copying code. Also, I'm sure that this particular issue isn't specific to PHPFreaks or Dreamweaver. I would imagine that other discussion forums where code is posted will have user's experiencing the same problem.

Related Resources

  • – a discussion forum for getting help with PHP, MySQL, and other Web-related topics. Note that I'm cyberRobot on the forum.


There are currently no comments.

Leave a Comment