User Guide
382 Chapter 18: Code
dreamweaver.codeHints.resetMenu()
Availability
Dreamweaver MX.
Description
Resets the specified menu tag or function tag to its state immediately after Dreamweaver reads the
CodeHints.xml file. In other words, a call to this function erases the effect of previous calls to the
addMenu() and addFunction() functions.
Arguments
menuGroupId, pattern, {doctypes}
• The menuGroupId argument is the ID string attribute of a menugroup tag.
• The pattern argument is a string that specifies the pattern attribute for the new menu or
function tag to be reset.
• The doctypes argument, which is optional, specifies that this menu is active for only certain
document types. You can specify the
doctypes argument as a comma-separated list of
document type IDs. For a list of Dreamweaver document types, see the Dreamweaver
Configuration/Documenttypes/MMDocumentTypes.xml file.
Returns
Nothing.
Example
Your JavaScript code might build a Code Hints menu that contains user-defined session variables.
Each time the list of session variables changes, that code needs to update the menu. Before the
code can load the new list of session variables into the menu, it needs to remove the old list.
Calling this function removes the old session variables.
dreamweaver.codeHints.showCodeHints()
Availability
Dreamweaver MX.
Description
Dreamweaver calls this function when the user opens the Edit > Show Code Hints menu item.
The function opens the Code Hints menu at the current selection location in Code view.
Arguments
None.
Returns
Nothing.
Example
The following example opens the Code Hints menu at the current insertion point in the
document when it is in Code view.
dw.codeHints.showCodeHints()
000_DW_API_Print.book Page 382 Wednesday, August 20, 2003 9:14 AM