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.