Macromedia dreamweaver 8-extending dreamweaver Benutzerhandbuch

Seite von 504
58
Customizing Code View
<menugroup>
Description
Each 
menugroup
 tag corresponds to a type of menu. You can see the menu types that 
Dreamweaver defines by selecting the Code Hints category from the Preferences dialog box. 
Select Preferences from the Edit menu to display the Preferences dialog box.
You can create a new menu group or add to an existing group. Menu groups are logical 
collections of menus that the user might want to enable or disable using the Preferences dialog 
box.
Attributes
name, enabled, id
The 
name
 attribute is the localized name that appears in the list of menu groups in the 
Code Hints category of the Preferences dialog box.
The 
enabled
 attribute indicates whether the menu group is currently checked or enabled. 
A menu group that is enabled appears with a check mark next to it in the Code Hints 
category of the Preferences dialog box. Assign a 
true
 value to enable the menu group or a 
false
 value to disable a menu group. 
The 
id
 attribute is a nonlocalized identifier that refers to the menu group.
Contents
The 
description
menu
, and 
function
 tags.
Container
The 
codehints
 tag.
Example 
<menugroup name=
"
Session Variables
"
 enabled=
"
true
"
 id=
"
Session_Code_Hints
"
>
<description>
Description
The 
description
 tag contains text that Dreamweaver displays when you select the menu 
group from the Preferences dialog box. The description text displays below the list of menu 
groups. The description text might optionally contain a single 
a
 tag where the 
href
 attribute 
must be a JavaScript URL that Dreamweaver executes if the user clicks the link. Use the XML 
CDATA construct to enclose any special or illegal characters in the string so that 
Dreamweaver treats them as text.