Adobe Dreamweaver API Reference CS5 User Manual
Page 217
212
DREAMWEAVER API REFERENCE
Workspace
Last updated 8/27/2013
Description
This function removes comments. If you specify no arguments, it removes all types of comments from the current
selection, except server-side includes and Dreamweaver-specific comments. If there are nested comments, it removes
only the outer comment. If there is no current selection, it removes only the first line comment of the line on which
the cursor is located. If you specify arguments, the function removes only comments that match the values specified
in the beforeText and afterText arguments, even if the matching comments are nested inside other types of comments.
Arguments
beforeText, afterText
•
The beforeText argument is optional. It specifies the text to identify the beginning of the comment to remove from
the selection, or, if the value of the afterText argument is null, it specifies the type of line comment to remove from
the current selection.
•
The afterText argument, which is optional, specifies the text to identify the end of the comment to remove from the
selection.
Returns
Nothing.
Example
The following example removes an HTML comment:
dw.getDocumentDOM().source.removeComment('')
dreamweaver.htmlInspector.getShowHiddenCharacters()
Availability
Dreamweaver 8.
Description
This function determines whether the special characters for white spaces are displayed in the Code view of the Code
inspector.
Arguments
None.
Returns
A Boolean value:
true
if the hidden characters are displayed;
false
otherwise.
Example
The following example turns off the display of the special characters for white space in the Code inspector, if the display
of special characters is turned on initially:
if (dreamweaver.htmlinspector.getShowHiddenCharacters()){
dreamweaver.htmlinspector.setShowHiddenCharacters(false);
}