Code collapse functions
243
Returns
Nothing.
Example
The following example adjusts the boundaries of the code before the starting tag after the
ending tag to perform a
smart collapse
that preserves indenting and spacing:
var currentDOM = dw.getDocumentDOM();
currentDOM.collapseFullTagInverse(true);
dom.collapseSelectedCodeFragment()
Availability
Dreamweaver 8.
Description
This function collapses the selected code in Code view. If the selection is already collapsed,
this function does nothing.
Arguments
allowCodeFragmentAdjustment
■
The
allowCodeFragmentAdjustment
is a required, Boolean value. If
true
, Dreamweaver
modifies the boundaries of the current selection to perform a
smart collapse
, which
preserves current indenting and spacing. If
false
, Dreamweaver collapses the currently
selected code fragment exactly as indicated by the selection.
Returns
Nothing.
Example
The following example collapses the selected code fragment, without modification, in Code
view:
var currentDOM = dw.getDocumentDOM();
currentDOM.collapseSelectedCodeFragment(false);
dom.collapseSelectedCodeFragmentInverse()
Availability
Dreamweaver 8.
000_DW_API_Print.book Page 243 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...