User Guide
Code view toolbar functions 249
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.
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.
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.
000_DW_API_Print.book Page 249 Wednesday, July 20, 2005 11:58 AM