Dreamweaver CS4 greyed-out code

chopperchic used Ask the Experts™
I have created a website using Dreamweaver CS4. There is a bunch of greyed out code when I use the split view. I think it is just notes that Dreamweaver puts in when you build a site. My question is, can I delete this greyed out code without messing up any of the other code? I don't want that visible if someone is on the site and happens to check out the page info online.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Don't talk to me.
Hi chopperchic,

Welcome to EE!

There can be several kinds of greyed-out code in Dreamweaver.  Whether it is safe to delete depends on what it is:

1) When you create a page from a CSS Template (File | New | then choose 1, 2, or 3 column) DW will write comments in the CSS code that explains what is what and why.  This stuff can be deleted.

2) When you apply certain Behaviors (usually Server Behaviors), some commented code will be generated.  This can be deleted BUT it may cause the behavior to disappear from the panel.  The code will still work, though.

3) When working with Templates, any page based on a Template will have code that is not editable greyed out.  This cannot be deleted or edited at all, so don't worry about it.


Thank You!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial