Adobe 38040334 - Dreamweaver CS3 User Manual page 190

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

dom.collapseSelectedCodeFragmentInverse()
Availability
Dreamweaver 8.
Description
This function collapses all code before and after the selected code in Code view.
Arguments
allowAdjustmentOfCodeFragments
• The
allowAdjustmentOfCodeFragments
the boundaries of the code before and after the current selection to perform a smart collapse, which preserves the
current indenting and spacing. If
selection.
Returns
Nothing.
Example
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);
dom.expandAllCodeFragments()
Availability
Dreamweaver 8.
Description
This function expands all collapsed code fragments in Code view, including nested collapsed code fragments.
Arguments
None.
Returns
Nothing.
Example
The following example expands all collapsed code in Code view:
var currentDOM = dw.getDocumentDOM();
currentDOM.expandAllCodeFragments();
dom.expandSelectedCodeFragments()
Availability
Dreamweaver 8.
argument is a required, Boolean value. If
, Dreamweaver collapses the code fragments exactly as indicated by the
false
DREAMWEAVER CS3
API Reference
, Dreamweaver adjusts
true
185

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents