Adobe Dreamweaver API Reference CS5 Manual de usuario Pagina 216

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 533
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 215
211
DREAMWEAVER API REFERENCE
Workspace
Last updated 8/27/2013
Description
This function inserts the text specified in the beforeText argument before the current selection and the text specified
in the afterText argument after the current selection. The function then extends the current selection to include the
added text. However, if there is no current selection, the function does not select anything. If the text specified in the
afterText argument is null, the function inserts the text specified in the beforeText argument at the beginning of every
line in the current selection.
Arguments
beforeText, afterText
The beforeText argument is required. It specifies the text to insert at the beginning of the selection, or, if the value
of the afterText argument is null, it specifies the text to insert at the beginning of every line in the selection.
The afterText argument, which is optional, specifies the text to insert at the end of the selection.
Returns
Nothing.
Example
The following example makes the current selection an HTML comment:
dw.getDocumentDOM().source.applyComment('<!--', '-->')
dom.source.refreshVariableCodeHints()
Availability
Dreamweaver CS3.
Description
Rescans the page looking for variables and corresponding class associations. This function rebuilds the color state
engine and the variable list.
Arguments
bSyncDoc
This is a Boolean value. The default is false. If set to true, the Design view is synchronized with the Code view.
Returns
Nothing.
Example
dom.source.refreshVariableCodeHints();
dom.source.removeComment()
Availability
Dreamweaver 8.
Vista de pagina 215
1 2 ... 211 212 213 214 215 216 217 218 219 220 221 ... 532 533

Comentarios a estos manuales

Sin comentarios