246
Workspace
Example
The following example collapses the code fragment in the current selection in the Code
inspector that starts just before the start tag and ends just after the end tag:
dreamweaver.htmlInspector.collapseFullTag(false);
dreamweaver.htmlInspector.collapseFullTagInverse()
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
before
the start tag and the code
after
the end tag; if not, the function does nothing.
Arguments
allowAdjustmentOfCodeFragments
■
The
allowAdjustmentOfCodeFragments
argument is a required, Boolean value. If
true
,
Dreamweaver adjusts the boundaries of the code before the start tag and of the code after
the end tag to perform a
smart collapse
, which preserves the existing indenting and
spacing. If
false
, Dreamweaver collapses the code
before
the open tag and the code
after
the end tag, without any modifications.
Returns
Nothing.
Example
The following example performs a
smart collapse
on the code sections occurring before the
starting tag and after the ending tag of the current selection:
dreamweaver.htmlInspector.collapseFullTagInverse(true);
dreamweaver.htmlInspector.collapseSelectedCode
Fragment()
Availability
Dreamweaver 8.
000_DW_API_Print.book Page 246 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...