Adobe 29180248 User Guide - Page 40

format, This tag's attributes are difficult to write by hand. The best way to create

Page 40 highlights

resid:name References string with value of resid:name in resource file, and changes the Dreamweaver configuration file to display that string as a menu item. If Extension Manager can't find the string in the resource file, the value specified in the name attribute is displayed as the menu item. For more information, see Creating multilingual extension packages (version 2.1 and later) on page 54. Contents None. Container This tag must be contained in a menu-insert tag that is not inside a server-formatdefinition-changes tag. Example format Description Describes the data format to be inserted into the Dreamweaver Format menu during installation of this extension. Attributes This tag's attributes are difficult to write by hand. The best way to create a format tag is to use the interface inside Dreamweaver. After you create a format, open the appropriate Formats.xml file in a text editor and copy the appropriate format tag (generated by Dreamweaver). Paste this tag into the appropriate place in your extension installation file. Then add an id attribute. Each format ID must be unique; your IDs should start with a company name or some other namespace prefix to ensure uniqueness. In particular, don't start your IDs with DW, which is the prefix used by the Dreamweaver IDs. One useful approach is to prefix every ID with your domain name (with the elements reversed); for example, if your domain name is joe.com, you could start every ID with com.joe. to ensure uniqueness. Contents None. Container This tag must be contained in a menu-insert tag that is inside a server-format-definitionchanges tag. Example

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66

40
Packaging Extensions with Extension Manager CS5
resid:name
References string with value of
resid:name
in resource file, and changes the
Dreamweaver configuration file to display that string as a menu item. If Extension Manager can't
find the string in the resource file, the value specified in the
name
attribute is displayed as the
menu item.
For more information, see
Creating multilingual extension packages (version 2.1 and
later)
on
page
54
.
Contents
None.
Container
This tag must be contained in a
menu-insert
tag that is not inside a
server-format-
definition-changes
tag.
Example
<menuitem name = "Convert Frobs to Squigs" id = "JMMenu_Commands_ConvertFrobs"
key = "Cmd+Alt+Shift+F" platform = "mac" file = "commands/common/
frob2squig.htm"
dynamic = "false" />
format
Description
Describes the data format to be inserted into the Dreamweaver Format menu during installation
of this extension.
Attributes
This tag’s attributes are difficult to write by hand. The best way to create a
format
tag is to use
the interface inside Dreamweaver. After you create a format, open the appropriate Formats.xml
file in a text editor and copy the appropriate
format
tag (generated by Dreamweaver). Paste this
tag into the appropriate place in your extension installation file.
Then add an
id
attribute. Each format ID must be unique; your IDs should start with a company
name or some other namespace prefix to ensure uniqueness. In particular, don’t start your IDs
with
DW
, which is the prefix used by the Dreamweaver IDs. One useful approach is to prefix every
ID with your domain name (with the elements reversed); for example, if your domain name is
joe.com, you could start every ID with
com.joe.
to ensure uniqueness.
Contents
None.
Container
This tag must be contained in a
menu-insert
tag that is inside a
server-format-definition-
changes
tag.
Example
<format
file = "Date/Time"
title = "Date/Time - 14:35"
expression = "<%\s*=\sDoDateTime\(.*, 4, 1033\)\s*%>"
strNamedFormat = "shortTime"