Adobe Dreamweaver API Reference CS5 Manuale Utente Pagina 216

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 533
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la 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.
Vedere la pagina 215
1 2 ... 211 212 213 214 215 216 217 218 219 220 221 ... 532 533

Commenti su questo manuale

Nessun commento