Adobe 38040334 - Dreamweaver CS3 User Manual page 191

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

Advertisement

Description
This function expands all collapsed code fragments in Code view that are within the current selection. If the
selection is already expanded, this function does nothing.
Arguments
None.
Returns
Nothing.
Example
The following example expands all collapsed code in the current selection in Code view:
var currentDOM = dw.getDocumentDOM();
currentDOM.expandSelectedCodeFragments();
dreamweaver.htmlInspector.collapseFullTag()
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 fragment that starts just before the start
tag and ends after the end tag; if not, the function does nothing.
Arguments
allowACodeFragmentAdjustment
• The
allowCodeFragmentAdjustment
has no effect, or has the same effect as a value of
immediately before the opening tag and ends immediately after the ending tag, without any modification.
Returns
Nothing.
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.
argument is a required, Boolean value. If
. If
, Dreamweaver collapses the code that begins
false
false
DREAMWEAVER CS3
API Reference
, this argument currently
true
186

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents