Doug C. answered 03/14/23
PhD in Education with 15+ Years of Web Design Experience.
If I understand your question correctly, yes, it is possible to auto-organize code in Dreamweaver CS5. You can use the "Code Cleanup" feature to do this.
Here are the steps:
- Open the HTML file you want to clean up in Dreamweaver CS5.
- Go to "Commands" in the top menu bar, and select "Apply Source Formatting."
- In the "Apply Source Formatting" dialog box, select the "Clean up HTML" option.
- Select the options you want to use for cleaning up the code. For example, you can select "Indent using spaces," "Remove empty lines," and "Remove extra white space."
- Click the "OK" button to start the cleanup process.
Dreamweaver will automatically organize your code based on the options you selected. In your example, the code would be organized as follows:
<div id="wrapper">
<div id="content">
Content
</div>
</div>