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.
NO
T
E
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
Summary of Contents for DREAMWEAVER 8-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 16: ......
Page 28: ...28 The File I O API...
Page 38: ...38 The HTTP API...
Page 68: ...68 Flash Integration...
Page 100: ...100 The Database API...
Page 116: ...116 The JavaBeans API...
Page 144: ...144 The Source Control Integration API...
Page 146: ......
Page 254: ...254 Workspace...
Page 298: ...298 Site...
Page 354: ...354 Document...
Page 396: ...396 Page Content...
Page 488: ...488 Design...
Page 550: ...550 Code...