User Guide
252 Workspace
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
■ 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.
afterText
■ 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: true if the hidden characters are displayed; false otherwise.
000_DW_API_Print.book Page 252 Wednesday, July 20, 2005 11:58 AM