Remove Comments

Commenting the different sections of your webpage helps when you or a coworker needs to review, edit, or update your work. Comments can be simple one liners or detailed paragraphs. They are invisible to the users viewing your webpage, but they do add to the overall file size. This tutorial will show you how to quickly remove comments from your code!

STEP ONE

When looking at your code, you probably have comments that look something like the following:

Remove comments step 1

Go to Commands > Clean Up XHTML and choose the following:

Browser testing step 1a

The "Non-Dreamweaver HTML comments" is the option that removes the comments from your code. The "Show log on completion" will prompt you with how many comments were removed. This is the end result:

Remove comments step 1b

The comments have been removed! Enjoy!

More Dreamweaver Tutorials