Specifications
534
Print function
The print function lets the user print code from Code view.
dreamweaver.PrintCode()
Availability
Dreamweaver MX
Description
In Windows, prints all or selected portions of code from the Code view. On the Macintosh, prints 
all code or a page range of code.
Arguments
showPrintDialog, document
• showPrintDialog is true or false. If this argument is set to true, in Windows 
dreamweaver.PrintCode() displays the print dialog box to ask if the user wants to print all 
text or selected text. On the Macintosh, the 
dreamweaver.PrintCode() function displays the 
print dialog box to ask if the user wants to print all text or a page range. If the argument is set 
to 
false, dreamweaver.PrintCode() uses the user’s previous selection. The default value is 
true.
• document is the document DOM of the document to print. For information on how to obtain 
the DOM for a document, see “dreamweaver.getDocumentDOM()” on page 453.
Returns
true if able to print the code.
false if unable to print the code.
Example
var theDOM = dreamweaver.getDocumentDOM(“document”);
if(!dreamweaver.PrintCode(true, theDOM))
{
alert(“Unable to execute your print request!”);
}
Quick Tag Editor Functions
Quick tag editor functions navigate through the tags within and surrounding the current 
selection. They remove any tag in the hierarchy, wrap the selection inside a new tag, and show the 
Quick tag editor to let the user edit specific attributes for the tag.
dom.selectChild()
Availability
Dreamweaver 3
Description
Selects a child of the current selection. Calling this function is equivalent to selecting the next tag 
to the right in the tag selector at the bottom of the Document window.










