Operation Manual

Table Of Contents
398
Coding
Last updated 11/30/2015
To collapse code based on selection, perform the following steps:
1 In Code view, select the code fragment that you want to collapse.
When you select code, a set of collapse buttons is displayed next to the selection (minus symbols in Windows;
vertical triangles on the Macintosh).
2 Click the buttons to collapse and expand the selection. When the code is collapsed, the collapse buttons change to
an expand button (a plus button in Windows; a horizontal triangle on the Macintosh).
Sometimes, the exact fragment of code that you selected is not collapsed. Dreamweaver uses “smart collapse” to
collapse the most common and visually pleasing selection. For example, if you selected an indented tag and then
selected the indented spaces before the tag as well, Dreamweaver would not collapse the indented spaces, because
most users would expect their indentations to be preserved. To disable smart collapse and force Dreamweaver to
collapse exactly what you selected, hold down the Control key before collapsing your code.