Code collapse functions
245
dom.expandSelectedCodeFragments()
Availability
Dreamweaver 8.
Description
This function expands all collapsed code fragments in Code view that are within the current
selection. If the selection is already expanded, this function does nothing.
Arguments
None.
Returns
Nothing.
Example
The following example expands all collapsed code in the current selection in Code view:
var currentDOM = dw.getDocumentDOM();
currentDOM.expandSelectedCodeFragments();
dreamweaver.htmlInspector.collapseFullTag()
Availability
Dreamweaver 8.
Description
This function determines whether the selection in the Code inspector is entirely within a
single pair of start and end tags or contains a single pair of start and end tags. If so, it collapses
the code fragment that starts just before the start tag and ends after the end tag; if not, the
function does nothing.
Arguments
allowACodeFragmentAdjustment
■
The
allowCodeFragmentAdjustment
argument is a required, Boolean value. If
true
, this
argument currently has no effect, or has the same effect as a value of
false
. If
false
,
Dreamweaver collapses the code that begins immediately before the opening tag and ends
immediately after the ending tag, without any modification.
Returns
Nothing.
000_DW_API_Print.book Page 245 Wednesday, July 20, 2005 11:58 AM
Summary of Contents for DREAMWEAVER 8-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 16: ......
Page 28: ...28 The File I O API...
Page 38: ...38 The HTTP API...
Page 68: ...68 Flash Integration...
Page 100: ...100 The Database API...
Page 116: ...116 The JavaBeans API...
Page 144: ...144 The Source Control Integration API...
Page 146: ......
Page 254: ...254 Workspace...
Page 298: ...298 Site...
Page 354: ...354 Document...
Page 396: ...396 Page Content...
Page 488: ...488 Design...
Page 550: ...550 Code...