dom.source.removeComment()

Availability

Dreamweaver 8.

Description

This function removes comments. If you specify no arguments, it removes all types of comments from the current selection, except server-side includes and Dreamweaver-specific comments. If there are nested comments, it removes only the outer comment. If there is no current selection, it removes only the first line comment of the line on which the cursor is located. If you specify arguments, the function removes only comments that match the values specified in the beforeText and afterText arguments, even if the matching comments are nested inside other types of comments.

Arguments

beforeText

afterText

Returns

Nothing.

Example

The following example removes an HTML comment:

dw.getDocumentDOM().source.removeComment('<!--', '-->')

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/dreamweaver/8/apiref/12_wo189.htm