beautypg.com

Dom.getshowhiddencharacters(), Dom.setshowhiddencharacters(), Dom.source.applycomment() – Adobe Dreamweaver API Reference CS5 User Manual

Page 215

background image

210

DREAMWEAVER API REFERENCE

Workspace

Last updated 8/27/2013

dom.getShowHiddenCharacters()

Availability
Dreamweaver 8.

Description
This function determines whether the special characters for white spaces are shown in the Code view of the Document
window.

Arguments
None.

Returns
A Boolean:

true

if the hidden characters are displayed;

false

otherwise.

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 210 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.