Adobe 38040334 - Dreamweaver CS3 User Manual page 46

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

• The
attribute specifies the name of the function and its argument list. For methods, the pattern attribute
pattern
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
function. For an object 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
attribute specifies that the menu is active only for the specified document types. This attribute lets
doctypes
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
For a list of Dreamweaver document types, see the Dreamweaver
Configuration/Documenttypes/MMDocumentTypes.xml file.
• The
attribute specifies whether the pattern is case-sensitive. The possible values for the
casesensitive
attribute are
casesensitive
attribute. The list of document types lets you specify that the pattern is case-sensitive for some
doctypes
document types but not for others. The value defaults to
attribute is a value of
true
pattern that the pattern attribute specifies. If the
even if the pattern is lowercase and the text is uppercase.
Contents
None.
Container
The
tag.
menugroup
Example
// function example
<function pattern="CreateDate(year, month, day)" DOCTYPES="ColdFusion" />
// object method example
<function pattern="application.getAttribute(String name)" DOCTYPES="JSP" />
<method>
Description
Used for the Spry framework. This tag replaces the menu tag for specifying methods for a Code Hints pop-up menu.
When you type a method name in Code view, Dreamweaver opens a menu of method prototypes that provides a list
of parameters for the method and tracks the sequence of parameters as they are being filled. For methods that don't
have parameters, Dreamweaver closes the method call by adding the parentheses "()" characters.
The current argument is displayed t in bold. Each time you type a comma, Dreamweaver updates the menu to display
the next argument in bold. For object methods, when you type the object name, Dreamweaver opens a menu of the
methods that are defined for that object.
Attributes
pattern, icon
functionname(
doctypes
,
or a subset of the comma-separated list that you specify for the
true
false,
, the Code Hints menu appears only if the text that the user types exactly matches the
casesensitive
. The menu shows the list of arguments for the
attribute as a comma-separated list of document type IDs.
if you omit this attribute. If the
false
attribute is a value of
DREAMWEAVER CS3
Extending Dreamweaver
(including the
objectname.
casesensitive
, the menu appears
false
40

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents