Code View Toolbar Functions - Adobe 38040334 - Dreamweaver CS3 User Manual

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

DREAMWEAVER CS3
189
API Reference
Example
The following example expands all collapsed code in the current selection in the Code inspector:
dreamweaver.htmlInspector.expandSelectedCodeFragments();

Code view toolbar functions

Code view toolbar functions let you insert text, remove comments, show or hide special characters for white spaces
in Code view, and get the path of the current document.
Note: There are two different Coding toolbars: one for Code view and one for the Code inspector. Both are customized
in the file Configuration/Toolbars/toolbars.xml.
dom.getOpenPathName()
Availability
Dreamweaver 8.
Description
This function gets the absolute file path of the open document.
Arguments
None.
Returns
A string that is the absolute file path of the open document.
Example
The following example assigns the string that contains the path of the currently open document to the variable
:
fileName
var fileName = dom.getOpenPathName();
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:
if the hidden characters are displayed;
otherwise.
true
false

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents