Adobe Dreamweaver API Reference CS5 Manual de usuario Pagina 212

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 533
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 211
207
DREAMWEAVER API REFERENCE
Workspace
Last updated 8/27/2013
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.collapseSelectedCodeFragment()
Availability
Dreamweaver 8.
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 is a required, Boolean value. If true, Dreamweaver modifies the current
selection to perform a smart collapse, which preserves the existing indenting and spacing. If
false, Dreamweaver
collapses the currently selected code fragment exactly as indicated by the selection.
Returns
Nothing.
Example
The following example adjusts and collapses the selected code in the Code inspector:
Vista de pagina 211
1 2 ... 207 208 209 210 211 212 213 214 215 216 217 ... 532 533

Comentarios a estos manuales

Sin comentarios