Operation Manual

295
USING DREAMWEAVER
Working with page code
Last updated 3/28/2012
To get more information about the tag within the Tag editor, click Tag Info.
Edit code with the Coding context menu
1 In Code view, select some code and right-click (Windows) or Control-click (Macintosh).
2 Select the Selection submenu, and select any of the following options:
Collapse Selection Collapses the selected code.
Collapse Outside Selection Collapses all of the code outside the selected code.
Expand Selection Expands the selected code fragment.
Collapse Full Tag Collapses the content between a set of opening and closing tags (for example, the content between
<table> and </table>).
Collapse Outside Full Tag Collapses the content outside a set of opening and closing tags (for example, the content
outside
<table> and </table>).
Expand All Restores all collapsed code.
Apply HTML Comment Wraps the selected code with <!-- and -->, or opens a new tag if no code is selected.
Apply /* */ Comment Wraps the selected CSS or JavaScript code with /* and */.
Apply // Comment Inserts // at the beginning of each line of selected CSS or JavaScript code, or inserts a single // tag
if no code is selected.
Apply ' Comment Inserts a single quotation mark at the beginning of each line of a Visual Basic script, or inserts a
single quotation mark at the insertion point if no code is selected.
Apply Server Comment Wraps the selected code. When you are working in a ASP, ASP.NET, JSP, PHP, or ColdFusion
file and you select the Apply Server Comment option, Dreamweaver automatically detects the correct comment tag
and applies it to your selection.
Apply Backslash-comment Hack Wraps the selected CSS code with comment tags that will cause Internet Explorer 5
for Macintosh to ignore the code.
Apply Caio Hack
Wraps the selected CSS code with comment tags that will cause Netscape Navigator 4 to ignore the code.
Remove Comment Removes comment tags from the selected code. If a selection includes nested comments, only the
outer comment tags are removed.
Remove Backslash-comment Hack Removes comment tags from the selected CSS code. If a selection includes nested
comments, only the outer comment tags are removed.
Remove Caio Hack Removes comment tags from the selected CSS code. If a selection includes nested comments, only
the outer comment tags are removed
Convert Tabs to Spaces Converts each tab in the selection to a number of spaces equal to the Tab Size value set in Code
Format preferences. For more information, see
Change the code format” on page 283.
Convert Spaces To Tabs Converts runs of spaces in the selection to tabs. Each run of spaces that has a number of spaces
equal to the tab size is converted to one tab.
Indent Indents the selection, shifting it to the right. For more information, see “Indent code blocks” on page 296.
Outdent Shifts the selection to the left.
Remove All Tags Removes all the tags in the selection.