Specifications

The Dreamweaver JavaScript API 395
Example
<description>
<![CDATA[ To add or remove tags and attributes, use the <a
href="javascript:dw.tagLibrary.showTagLibraryEditor()">Tag Library Editor</
a>.
]]>
</description>
<menu>
Description
Describes a single pop-up menu. Dreamweaver pops up the menu whenever the user types the last
character of the string in the pattern attribute. For example, the menu that shows the contents of
a Session variable might have a pattern attribute that is equal to "
Session.".
Attributes
pattern doctypes casesensitive
pattern
specifies the pattern of typed characters that cause Dreamweaver to pop up the Code
Hints menu. If the first character of the pattern is a letter, number, or underscore, Dreamweaver
displays the menu only if the character that precedes the pattern in the document is not a letter,
number, or underscore. For example, if the pattern is "
Session.", Dreamweaver does not pop up
the menu if the user types "
my_Session.".
doctypes specifies that the menu is active only for the specified document types. This attribute
lets you specify different lists of function names for ASP-JavaScript (ASP-JS), Java Server Pages
(JSP), ColdFusion, and so on. You can specify
doctypes as a comma-separated list of document
type IDs. See the Dreamweaver Configuration/Documenttypes/MMDocumentTypes.xml file for
a list of Dreamweaver document types.
casesensitive specifies whether the pattern is case-sensitive. The possible values for
casesensitive are true, false, or a subset of the comma-separated list that you specify for the
doctypes attribute. The list of document types lets you specify that the pattern is case-sensitive
for some document types but not for others. The value defaults to false if you omit this
attribute. If
casesensitive is true, the Code Hints menu will pop up only if the text that the
user types exactly matches the pattern specified by the pattern attribute. If
casesensitive is
false, the menu pops up even if the pattern is lowercase and the text is uppercase.
Contents
menuitem tag.
Container
menugroup tag.
Example
<menu pattern="CGI." doctypes="ColdFusion">
<menuitem>
Description
Specifies the text for an item in a Code Hints pop-up menu. The menuitem also specifies the
value to insert into the text when you select the item.