Extensible document types in dreamweaver, Document type definition files – Adobe Extending Dreamweaver CS4 User Manual
Page 19
13
EXTENDING DREAMWEAVER CS4
Customizing Dreamweaver
HTML DmWr TEXT ASCII
In both the FTPExtensionMap.txt file and FTPExtensionMapMac.txt file (Macintosh), all elements on a given line are
separated by tabs. The extension and the transfer mode are in uppercase letters.
To change a default setting, edit the file in a text editor.
Add information about a new filename extension
1
Edit the extension-map file in a text editor.
2
On a blank line, enter the filename extension (in uppercase letters) and press Tab.
3
On the Macintosh, add the creator code, a tab, the file type, and another tab.
4
Enter ASCII or BINARY to set an FTP transfer mode.
5
Save the file.
Extensible document types in Dreamweaver
XML provides a rich system for defining complex documents and data structures. Dreamweaver uses several XML
schemas to organize information about server behaviors, tags and tag libraries, components, document types, and
reference information.
When you create and work with extensions in Dreamweaver, there are many instances in which you create or modify
existing XML files to manage the data that your extension uses. In many cases, you can copy an existing file from the
appropriate subfolder within the Configuration folder to use as a template.
Document type definition files
The central component of extensible document types is the document type definition file. There might be several
definition files, all of which are located in the Configuration/DocumentTypes folder. Each definition file contains
information about at least one document type. For each document type, essential information such as server model,
color coding style, descriptions, and so forth, is described.
Note: Do not confuse Dreamweaver document type definition files with the XML document type definition (DTD).
Document type definition files in Dreamweaver contain a set of
documenttype
elements, each of which defines a
predefined collection of tags and attributes that are associated with a document type. When Dreamweaver starts, it parses
the document type definition files and creates an in-memory database of information regarding all defined document
types.
Dreamweaver provides an initial document type definition file. This file, named MMDocumentTypes.xml, contains
the document type definitions provided by Adobe:
Document type
Server model
Internal type
File extensions
Previous server
model
ASP.NET C#
ASP.NET-Csharp
Dynamic
aspx, ascx
ASP.NET VB
ASP.NET-VB
Dynamic
aspx, ascx
ASP JavaScript
ASP-JS
Dynamic
asp
ASP VBScript
ASP-VB
Dynamic
asp
ColdFusion
ColdFusion
Dynamic
cfm, cfml
UltraDev 4 ColdFusion