Adobe 38040334 - Dreamweaver CS3 User Manual page 195

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

Advertisement

Example
The following example turns off the display of the special characters for white space, if the display of special
characters is turned on initially:
var currentDOM = dw.getDocumentDOM();
if (currentDOM.getShowHiddenCharacters()){
currentDOM.setShowHiddenCharacters(false);
}
dom.setShowHiddenCharacters()
Availability
Dreamweaver 8.
Description
This function shows or hides the special characters for white spaces in the Code view of the Code inspector.
See "dom.getShowHiddenCharacters()" on page 189 for an example.
Arguments
show
• The
argument, which is required, is a Boolean value that indicates whether to display the hidden characters.
show
Returns
Nothing.
dom.source.applyComment()
Availability
Dreamweaver 8.
Description
This function inserts the text specified in the
specified in the
afterText
include the added text. However, if there is no current selection, the function does not select anything. If the text
specified in the
afterText
the beginning of every line in the current selection.
Arguments
beforeText, afterText
• The
argument is required. It specifies the text to insert at the beginning of the selection, or, if the
beforeText
value of the
afterText
selection.
• The
argument, which is optional, specifies the text to insert at the end of the selection.
afterText
Returns
Nothing.
beforeText
argument after the current selection. The function then extends the current selection to
argument is null, the function inserts the text specified in the
argument is null, it specifies the text to insert at the beginning of every line in the
argument before the current selection and the text
DREAMWEAVER CS3
API Reference
argument at
beforeText
190

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents