beautypg.com

Dom.formatselection(), Dom.getshownoscript(), Dom.getautovalidationcount() – Adobe Dreamweaver API Reference CS5 User Manual

Page 475

background image

470

DREAMWEAVER API REFERENCE

Code

Last updated 8/27/2013

dom.formatSelection()

Availability
Dreamweaver MX.

Description
Applies Dreamweaver automatic syntax formatting to the selected content (the same as selecting the Commands >
Apply Source Formatting to Selection option) according to the settings in the Preferences > Code Format dialog box.

Arguments
None.

Returns
Nothing.

dom.getShowNoscript()

Availability
Dreamweaver MX.

Description
Gets the current state of the

noscript

content option (from the View > Noscript Content menu option). On by

default, the

noscript

tag identifies page script content that can be rendered, or not (by choice), in the browser.

Arguments
None.

Returns
A Boolean value:

true

if the

noscript

tag content is currently rendered;

false

otherwise.

dom.getAutoValidationCount()

Availability
Dreamweaver MX 2004.

Description
Gets the number of errors, warnings, and information messages for the last auto-validation (also known as an inline
validation) of the document. Currently only a target-browser check is performed during auto-validation (see

dom.runValidation()

” on page 265).

Note: This function returns only the results that are currently in the results window for the document. If you want to make
sure that the counts are up-to-date, you can call

dom.runValidation()

before calling this function.

Arguments
None.