User Guide
492 Code
■ The casesensitive argument, which is optional, specifies whether the pattern is case-
sensitive. The possible values for the
casesensitive argument are the Boolean values
true or false. The value defaults to false if you omit this argument. If the
casesensitive argument is a true value, the Code Hints menu appears only if the text
that the user types exactly matches the pattern that the pattern attribute specifies. If
casesensitive is a false value, the menu appears even if the pattern is lowercase and
the text is uppercase.
Returns
Nothing.
Example
The following example of the dw.codeHints.addFunction() function adds the function
name pattern
out.newLine() to the Code Hints menu group CodeHints_Object_Methods
and makes it active only for
JSP document types:
dw.codeHints.addFunction(
"CodeHints_Object_Methods",
"out.newLine()",
"JSP")
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.
000_DW_API_Print.book Page 492 Wednesday, July 20, 2005 11:58 AM