Dom.source.scrolltopfile(), Dom.source.selectparenttag(), Dom.source.setcurrentline() – Adobe Dreamweaver API Reference CS5 User Manual
Page 488
483
DREAMWEAVER API REFERENCE
Code
Last updated 8/27/2013
dom.source.scrollTopFile()
Availability
Dreamweaver 4.
Description
Scrolls the Code view to the top of the document file without moving the insertion point.
Arguments
None.
Returns
Nothing.
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.