Code View Functions - MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Reference

Dreamweaver api reference
Table of Contents

Advertisement

Code view functions

Code view functions include operations that are related to editing document source code (and
that have subsequent impact on the Design view). The functions in this section let you add
navigational controls to Code views within a split document view or the Code inspector
window.
dom.formatRange()
Availability
Dreamweaver MX.
Description
Applies Dreamweaver automatic syntax formatting to a specified range of characters in the
Code view, according to the settings in the Preferences > Code Format dialog box.
Arguments
startOffset, endOffset
The
startOffset
range as the offset from the beginning of the document.
The
argument is an integer that represents the end of the specified range as the
endOffset
offset from the beginning of the document.
Returns
Nothing.
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.
524
Code
argument is an integer that represents the beginning of the specified

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