Adobe 38040334 API Reference - Page 195
dom.setShowHiddenCharacters, dom.source.applyComment
![]() |
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 195 highlights
DREAMWEAVER CS3 190 API Reference Example The following example turns off the display of the special characters for white space, if the display of special characters is turned on initially: var currentDOM = dw.getDocumentDOM(); if (currentDOM.getShowHiddenCharacters()){ currentDOM.setShowHiddenCharacters(false); } dom.setShowHiddenCharacters() Availability Dreamweaver 8. Description This function shows or hides the special characters for white spaces in the Code view of the Code inspector. See "dom.getShowHiddenCharacters()" on page 189 for an example. Arguments show • The show argument, which is required, is a Boolean value that indicates whether to display the hidden characters. Returns Nothing. dom.source.applyComment() Availability Dreamweaver 8. 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.
![](/manual_guide/products/adobe-38040334-api-reference-b593776/195.png)