408
Chapter 18: Code
Arguments
{nearWhat}
,
{mode}
•
The optional
nearWhat
argument, if specified, must be either
"selection"
or
"tag
selector"
. If this argument is omitted, the default value is
"selection"
.
•
The optional
mode
argument, if specified, must be
"default"
,
"wrap"
,
"insert"
, or
"edit"
.
If
mode
is
"default"
or omitted, Dreamweaver uses heuristics to determine the mode to use
for the current selection. The
mode
argument is ignored if
nearWhat
is
"tag selector"
.
Returns
Nothing.
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
argument is an integer that represents the beginning of the specified range
as the offset from the beginning of the document.
•
The
endOffset
argument is an integer that represents the end of the specified range as the
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.
000_DW_API_Print.book Page 408 Wednesday, August 20, 2003 9:14 AM
Содержание DREAMWEAVER MX 2004-DREAMWEAVER API
Страница 1: ...Dreamweaver API Reference...
Страница 24: ...24 Contents...
Страница 32: ......
Страница 70: ...70 Chapter 5 Fireworks Integration...
Страница 76: ...76 Chapter 6 Flash Integration...
Страница 116: ...116 Chapter 9 The JavaBeans API...
Страница 140: ......
Страница 152: ...152 Chapter 11 Application...
Страница 218: ...218 Chapter 12 Workspace...
Страница 248: ...248 Chapter 13 Site...
Страница 292: ...292 Chapter 14 Document...
Страница 378: ...378 Chapter 17 Design...
Страница 430: ...430 Chapter 18 Code...
Страница 486: ...486 Index...