Specifications

594
Arguments
None.
Returns
A pair of integers that represent offsets from the beginning of the source document. The first
integer is the beginning of the selection; the second is the end of the selection. If the two numbers
are equal, the selection is an insertion point. If there is no selection in the source, both numbers
are -1.
dom.source.getLineFromOffset()
Availability
Dreamweaver MX
Description
Takes an offset into the source document.
Arguments
None.
Returns
The associated line number, or -1 if the offset is negative or past the end of the file.
dom.source.getText()
Availability
Dreamweaver 4
Description
Returns the text string in the source between the designated offsets.
Arguments
startOffset, endOffset
start is an integer that represents the offset from the beginning of the document.
end is an integer that represents the end of the document.
Returns
A string that represents the text in the source code between the offsets start and end.
dom.source.indentTextview()
Availability
Dreamweaver 4
Description
Moves selected source view text one tab stop to the right.
Arguments
None.
Returns
Nothing.