User Guide

78 Chapter 5: Customizing Code View
The CodeHints.xml file
The CodeHints.xml file contains the following entities:
A list of all the menu groups
Dreamweaver displays the list of menu groups when you select the Code Hints category
from the Preferences dialog box. You can open the Preferences dialog box by selecting
Edit > Preferences. Dreamweaver MX provides the following menu groups or types of Code
Hints menus: Tag Names, Attribute Names, Attribute Values, Function Arguments, Object
Methods and Variables, and HTML Entities.
The description for each menu group
The description appears in the Preferences dialog box for the Code Hints category when you
select the menu group in the list. The description for the selected entry appears below the
menu group list.
Code Hints menus
A menu consists of a pattern that triggers the Code Hints menu and a list of menu items. For
example, a pattern such as "
&" could trigger a menu such as "&", ">", "<".
The following example shows the format of the CodeHints.xml file:
<codehints>
<menugroup name="HTML Entities" enabled="true" id="CodeHints_HTML_Entities">
<description>
<![CDATA[ When you type a '&', a drop-down menu shows
a list of HTML entities. The list of HTML entities
is stored in Configuration/CodeHints.xml. ]]>
</description>
<menu pattern="&amp;">
<menuitem value="&amp;amp;" texticon="&amp;"/>
<menuitem value="&amp;lt;" icon="lessThan.gif"/>
</menu>
</menugroup>
<menugroup name="Tag Names" enabled="true" id="CodeHints_Tag_Names">
<description>
<![CDATA[ When you type '<', a drop-down menu shows
all possible tag names. You can edit the list of tag
names using the
<a href="javascript:dw.popupTagLibraryEditor()"> Tag Library Editor
</a>]]>
</description>
</menugroup>
<menugroup name="Function Arguments" enabled="true"
id="CodeHints_Function_Arguments">
<description>
...
</description>
<function pattern="ArraySort(array, sort_type, sort_order)"
doctypes="CFML"/>
<function pattern="Response.addCookie(Cookie cookie)"
doctypes="JSP"/>
</menugroup>
<codehints>