<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, Adobe Dreamweaver opens a menu of function prototypes, displaying the current argument in bold. Each time you type a comma, Adobe Dreamweaver updates the menu to display the next argument in bold. For example, if you typed the function name ArrayAppend
in a Coldfusion document, the Code Hints menu would display ArrayAppend(
array, value)
. After you type the comma following array
, the menu updates to show ArrayAppend
(array,
value).
For object methods, when you type the object name, Adobe Dreamweaver opens a menu of the methods that are defined for that object.
The set of recognized functions is stored in the Adobe Dreamweaver Configuration/CodeHints.xml file.
Attributes
pattern, doctypes, casesensitive
- The
pattern
attribute specifies the name of the function and its argument list. For methods, 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 typesfunctionname(
. The menu shows the list of arguments for the function. For an object method, the Code Hints menu appears when the user typesobjectname.
(including the 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
attribute 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), Adobe ColdFusion, and so on. You can specify thedoctypes
attribute as a comma-separated list of document type IDs. For a list of Adobe Dreamweaver document types, see the Adobe Dreamweaver Configuration/Documenttypes/MMDocumentTypes.xml file. - The
casesensitive
attribute specifies whether the pattern is case-sensitive. The possible values for thecasesensitive
attribute aretrue
,false,
or a subset of the comma-separated list that you specify for thedoctypes
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 tofalse
if you omit this attribute. If thecasesensitive
attribute is a value oftrue
, the Code Hints menu appears only if the text that the user types exactly matches the pattern that the pattern attribute specifies. If thecasesensitive
attribute is a value offalse
, the menu appears even if the pattern is lowercase and the text is uppercase.
Contents
None.
Container
The menugroup
tag.
Example
// function example <function pattern="CreateDate(year, month, day)" DOCTYPES="ColdFusion" />// object method example<function pattern="application.getAttribute(String name)" DOCTYPES="JSP" />