Description
This function collapses the selected code in the Code inspector. If the selection is already
collapsed, this function does nothing.
Arguments
allowCodeFragmentAdjustment
The
allowCodeFragmentAdjustment
modifies the current selection to perform a smart collapse, which preserves the existing
indenting and spacing. If
fragment exactly as indicated by the selection.
Returns
Nothing.
Example
The following example adjusts and collapses the selected code in the Code inspector:
dreamweaver.htmlInspector.collapseSelectedCodeFragment(true);
dreamweaver.htmlInspector.collapseSelectedCode
FragmentInverse()
Availability
Dreamweaver 8.
Description
This function collapses all code before and after the selected code in the Code inspector. If the
selection is already collapsed, this function does nothing.
Arguments
allowAdjustmentOfCodeFragments
The
allowAdjustmentOfCodeFragments
Dreamweaver adjusts the boundaries of the code sections before and after the current
selection to perform a smart collapse, which preserves the current indenting and spacing. If
, Dreamweaver collapses the code sections exactly as indicated by the selection.
false
Returns
Nothing.
is a required, Boolean value. If
, Dreamweaver collapses the currently selected code
false
argument is a required, Boolean value. If
, Dreamweaver
true
Code collapse functions
,
true
247
Need help?
Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?
Questions and answers