Edit tags with tag editors, Edit code with the coding context menu – Adobe Dreamweaver CC 2015 User Manual
Page 387

380
Coding
Last updated 6/3/2015
Note
:Only the first error in the line is displayed. If the line contains only a warning, the description of the warning is
displayed. If the line contains a warning and an error, only the error description is displayed.
Edit tags with Tag editors
Use Tag editors to view, specify, and edit the attributes of tags.
1
Right-click (Windows) or Control-click (Macintosh) a tag in Code view or an object in Design view, and select Edit
Tag from the pop-up menu. (The contents of this dialog box change depending on the selected tag.)
2
Specify or edit attributes for the tag and click OK.
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:
Expand All
Restores all collapsed code.
Apply HTML Comment
Wraps the selected code with , 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
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
.
Outdent
Shifts the selection to the left.