MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Manual page 82

Extending dreamweaver
Hide thumbs Also See for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER:
Table of Contents

Advertisement

Container
The
tag.
menu
Example
<menuitem label="CONTENT_TYPE" value="&quot;CONTENT_TYPE&quot;)" icon="shared/
mm/images/hintMisc.gif" />
<function>
Description
This tag replaces the menu tag for specifying function arguments and object methods for a Code
Hints pop-up menu. When you type a function or method name in Code View, Dreamweaver
opens a menu of function prototypes, displaying the current argument in bold. Each time you
type a comma, Dreamweaver updates the menu to display the next argument in bold. For
example, if you typed the function name
Hints menu would display
, the menu updates to show
array
For object methods, when you type the object name, Dreamweaver opens a menu of the methods
that are defined for that object.
The set of recognized functions is stored in the Dreamweaver Configuration/CodeHints.xml file.
Attributes
pattern, doctypes, casesensitive
The
pattern
the pattern attribute describes the name of the object, the name of the method, and the
method's arguments. For a function name, the Code Hints menu appears when the user types
functionname(
method, the Code Hints menu appears when the user types
period). This menu shows the methods that have been specified for the object. After that, the
Code Hints menu opens a list of the arguments for the method in the same way it does for
a function.
The
doctypes
This attribute lets you specify different lists of function names for ASP-JavaScript (ASP-JS),
Java Server Pages (JSP), Macromedia ColdFusion, and so on. You can specify the
attribute as a comma-separated list of document type IDs. For a list of Dreamweaver document
types, see the Dreamweaver Configuration/Documenttypes/MMDocumentTypes.xml file.
The
casesensitive
values for the
list that you specify for the
the pattern is case-sensitive for some document types but not for others. The value defaults to
if you omit this attribute. If the
false
Hints menu appears only if the text that the user types exactly matches the pattern that the
pattern attribute specifies. If the
appears even if the pattern is lowercase and the text is uppercase.
Contents
None.
82
Chapter 5: Customizing Code View
ArrayAppend(
ArrayAppend
attribute specifies the name of the function and its argument list. For methods,
. The menu shows the list of arguments for the function. For an object
attribute specifies that the menu is active only for the specified document types.
attribute specifies whether the pattern is case-sensitive. The possible
attribute are
casesensitive
doctypes
casesensitive
in a Coldfusion document, the Code
ArrayAppend
array
. After you type the comma following
, value)
(
value
array,
,
or a subset of the comma-separated
true
false,
attribute. The list of document types lets you specify that
attribute is a value of
casesensitive
attribute is a value of
).
(including the
objectname.
doctypes
true
, the menu
false
, the Code

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents