Adobe 38040334 - Dreamweaver CS3 User Manual page 196

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Example
The following example makes the current selection an HTML comment:
dw.getDocumentDOM().source.applyComment('<!--', '-->')
dom.source.refreshVariableCodeHints()
Availability
Dreamweaver CS3.
Description
Rescans the page looking for variables and corresponding class associations. This function rebuilds the color state
engine and the variable list.
Arguments
bSyncDoc
• This is a Boolean value. The default is
Returns
Nothing
Example
dom.source.refreshVariableCodeHints();
dom.source.removeComment()
Availability
Dreamweaver 8.
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
types of comments.
Arguments
beforeText, afterText
• The
argument is optional. It specifies the text to identify the beginning of the comment to remove
beforeText
from the selection, or, if the value of the
remove from the current selection.
• The
argument, which is optional, specifies the text to identify the end of the comment to remove from
afterText
the selection.
Returns
Nothing.
. If set to
false
and
arguments, even if the matching comments are nested inside other
afterText
afterText
, the design view is synchronized with the code view.
true
argument is null, it specifies the type of line comment to
DREAMWEAVER CS3
191
API Reference

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents