MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference page 251

Dreamweaver api reference
Table of Contents

Advertisement

dom.source.applyComment()
Availability
Dreamweaver 8.
Description
This function inserts the text specified in the
selection and the text specified in 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
argument is null, the function inserts the text specified in the
beginning of every line in the current selection.
Arguments
beforeText
The
beforeText
the selection, or, if the value of the
insert at the beginning of every line in the selection.
afterText
The
argument, which is optional, specifies the text to insert at the end of the
afterText
selection.
Returns
Nothing.
Example
The following example makes the current selection an HTML comment:
dw.getDocumentDOM().source.applyComment('<!--', '-->')
dom.source.removeComment()
Availability
Dreamweaver 8.
afterText
argument is required. It specifies the text to insert at the beginning of
afterText
argument before the current
beforeText
argument after the current selection. The
beforeText
argument is null, it specifies the text to
Code view toolbar functions
afterText
argument at the
251

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Dreamweaver 8

Table of Contents