MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Specifikace Strana 62

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 504
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 61
62 Customizing Code View
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 types
functionname(. The menu shows the list of arguments for the function.
For an object method, the Code Hints menu appears when the user types
objectname.
(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), Macromedia ColdFusion, and so on. You can specify
the
doctypes 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 attribute specifies whether the pattern is case-sensitive. The possible
values for the
casesensitive attribute 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 the casesensitive attribute is a
value of
true, the Code Hints menu appears only if the text that the user types exactly
matches the pattern that the pattern attribute specifies. If the
casesensitive attribute is
a value of
false, 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" />
Zobrazit stránku 61
1 2 ... 57 58 59 60 61 62 63 64 65 66 67 ... 503 504

Komentáře k této Příručce

Žádné komentáře