User Guide
Code view functions 417
dom.source.insert()
Availability
Dreamweaver 4.
Description
Inserts the specified string into the source code at the specified offset from the beginning of the
source file. If the offset is not greater than or equal to zero, the insertion fails and the function
returns
false.
Arguments
offset
, string
• The offset argument is the offset from the beginning of the file where the string must
be inserted.
• The string argument is the string to insert.
Returns
A Boolean value: true if successful; false otherwise.
dom.source.nextWord()
Availability
Dreamweaver 4.
Description
Moves the insertion point to the beginning of the next word (or words, if specified) in the Code
view. If content is already selected, this function extends the selection to the right.
Arguments
{nTimes}
, {bShiftIsDown}
• The nTimes argument, which is optional, is the number of words that the insertion point must
move. If
nTimes is omitted, the default is 1.
• The bShiftIsDown argument, which is optional, is a Boolean value that indicates whether
content is being selected. If
bShiftIsDown is true, the content is selected.
Returns
Nothing.
dom.source.outdentTextview()
Availability
Dreamweaver 4.
Description
Moves selected Code view text one tab stop to the left.
000_DW_API_Print.book Page 417 Wednesday, August 20, 2003 9:14 AM