Sunday, December 07, 2008

Dreamweaver DOES mess with your code

I just discovered that if you edit text in design view, DW will delete comments. I had some server side code stored in a page inside a comment (an add to cart button for Miva Merchant) and while I was editing the text that comes before the commented code, I removed what I thought were extraneous trailing spaces. But when I went back to code view, I found that all my commented add to cart code was gone! Bad, Bad, Bad Dreamweaver! In order to help prevent this from happening again I went into preferences, Invisible Elements and marked the checkbox next to comments. So, now, in design view, comments show up as one of those little yellow icons. I spend most of my time in code view, so I guess that's why I never discovered this issue before, but this is really bad.

5 Comments:

At 7:33 PM, Blogger Marf said...

Notepad doesn't mess with your code. That's one reason I use it.

 
At 9:59 PM, Blogger Techwiz said...

Luddite!

;-)

 
At 11:02 PM, Blogger Marf said...

Hey, I use notepad because it is cheaper, and it doesn't try to "auto-correct" something that wasn't wrong to begin with. It's easier for me.

Plus, when you create pages in some fancy webdesign program, it never generates error-free code that validates.

 
At 4:06 PM, Blogger Techwiz said...

Have you ever tried Notepad++, Textpad, Pspad or Komodo Edit...oh, and Homesite?

I've used em all. I use Notepad and Textpad a fair bit, but I still like DW the best.

Some of the things I like are the intelligent FTP, code collapse and being able to select parent tags. I like being able to find my place in the code by clicking on a spot in design view and then switching to code, and my cursor is in the block that I want it to be in.

I don't build pages in design view. I do the slice and dice, html conversion in my head, and code it by hand. For all the hard knocks DW gets, I still think it is the best html editor out there.

Have you used it much?

 
At 6:34 PM, Blogger Marf said...

Nope, I can't say I've used much other than notepad. I've thought about using Notepad++

 

Post a Comment

Links to this post:

Create a Link

<< Home