User Guide

422 Chapter 18: Code
dom.source.selectParentTag()
Availability
Dreamweaver 4.
Description
This function is a Code view extension that enables tag balancing. You can call
dom.source.selectParentTag() to extend a currently highlighted selection or insertion point
from the surrounding open tag to the closing tag. Subsequent calls extend the selection to
additional surrounding tags until there are no more enclosing tags.
Arguments
None.
Returns
Nothing.
dom.source.setCurrentLine()
Availability
Dreamweaver 4.
Description
Puts the insertion point at the beginning of the specified line. If the lineNumber argument is not
a positive integer, the function does nothing and returns
false. It puts the insertion point at the
beginning of the last line if
lineNumber is larger than the number of lines in the source.
Arguments
lineNumber
The lineNumber argument is the line at the beginning of which the insertion point is placed.
Returns
A Boolean value: true if successful; false otherwise.
dom.source.startOfDocument()
Availability
Dreamweaver 4.
Description
Places the insertion point at the beginning of the Code view document. If content is already
selected, this function extends the selection to the beginning of the document.
Arguments
bShiftIsDown
The bShiftIsDown argument is a Boolean value that indicates whether content is being
selected. If
bShiftIsDown is true, the content is selected.
000_DW_API_Print.book Page 422 Wednesday, August 20, 2003 9:14 AM