Specifications

Chapter 228
Document extensions
After creating a new document type, extension developers need to update the appropriate
Extensions.txt file. If the user is on a system that supports multiple users (such as Windows XP,
Windows 2000, or Mac OS X), the user has another Extensions.txt file in their Configuration
folder. This Extensions.txt file is the one that the user needs to update because this file is the
instance that Dreamweaver looks for and parses.
The location of the users Configuration folder depends on the users platform.
For Windows 2000 and Windows XP platforms:
<drive>:\Documents and Settings\<username>\ ¬
Application Data\Macromedia\Dreamweaver MX\Configuration
For Windows NT platforms:
<drive>:\WinNT\profiles\<username>\ ¬
Application Data\Macromedia\Dreamweaver MX\Configuration
For Mac OS X platforms:
<drive>:Users:<username>:Library:Application Support: ¬
Macromedia:Dreamweaver MX:Configuration
If Dreamweaver MX cannot find Extensions.txt in the users Configuration folder, Dreamweaver
looks for it in the Dreamweaver Configuration folder.
Note: On multiuser platforms, if you edit the copy of Extensions.txt that resides in the Dreamweaver Configuration
folder and not the one located in the user’s Configuration folder, Dreamweaver is not aware of the changes because
Dreamweaver parses the copy of Extensions.txt in the user’s Configuration folder, not in the Dreamweaver
Configuration folder.
Sometimes you might want to create a new document extension. To create a new document
extension, you can either add the new extension to an existing document type or create a new
document type, which is explained in preceding paragraphs.
To add a new extension to an existing document type, perform the following steps:
1 Edit MMDocumentTypes.xml.
2 Add the new extension to the winfileextension and macfileextension attributes of the
existing document type.
3 Add the new extension to the appropriate Extensions.txt file, as described at the beginning of
this section. Suppose you have a new document type called FOO and that it has three file
extensions that are associated with it: FE, FI, and FO. The following example shows how to
add those extensions to the Extensions.txt file:
HTM,HTML,...,VTML,FE,FI,FO:All Documents
...
FE,FI,FO:FOO Files
Localized strings
Within a document type definition file, the
<title> and <description> subtags specify the
display title and description for the document type. You can use the
MMString:loadstring
directive in the subtags as a placeholder for providing localized strings for the two subtags. This
process is similar to server-side scripting where you specify a particular string to use in your page
by using a string identifier as a placeholder. For the placeholder, you can use a special tag or you
can specify a tag attribute whose value is replaced.