Dreamweaver 8.
This function collapses all code before and after the selected code in Code view.
allowAdjustmentOfCodeFragments
allowAdjustmentOfCodeFragments argument is a required, Boolean value. If true, Dreamweaver adjusts the boundaries of the code before and after the current selection to perform a smart collapse, which preserves the current indenting and spacing. If false, Dreamweaver collapses the code fragments exactly as indicated by the selection.
Nothing.
The following example adjusts and then collapses all code before and after the selected code in Code view:
var currentDOM = dw.getDocumentDOM(); currentDOM.collapseSelectedCodeFragmentInverse(true);
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/dreamweaver/8/apiref/12_wo175.htm