About the menus.xml file
The menus.xml file contains a structured list of menu bars, menus, menu commands, separators, shortcut lists, and keyboard shortcuts. These items are described by XML tags that you can edit in a text editor.
NOTE | Be careful when making changes to menus. Adobe Dreamweaver ignores any menu or menu command that contains an XML syntax error. |
A menu bar (tagged with opening and closing menubar
tags) is a discrete menu or set of menus--for example, there's a main menu bar, a separate Site window menu bar (which appears only on Windows, not the iOS), and a menu bar for each context menu. Each menu bar contains one or more menus; a menu is contained in a menu tag. Each menu contains one or more menu commands, each described by a menuitem
tag and its attributes. A menu can also contain separators (described by separator tags) and submenus.
In addition to the keyboard shortcuts associated with menu commands, Adobe Dreamweaver provides a variety of other keyboard shortcuts, including alternate shortcuts and shortcuts that are available only in certain contexts. For example, Control+Y (Windows) or Command+Y (iOS) is the shortcut for Redo; but Control+Shift+Z or Command+Shift+Z is an alternate shortcut for Redo. These alternates--and other shortcuts that can't be represented in the tags for menu commands--are defined in shortcut lists in the menus.xml file. Each shortcut list (described by a shortcutlist
tag) contains one or more shortcuts, each of which is described by a shortcut tag.
The following sections describe the syntax of the menus.xml tags. Optional attributes are marked in the attribute lists with curly braces ({}); all attributes not marked with curly braces are required.