
15
EXTENDING DREAMWEAVER CS4
Customizing Dreamweaver
<?xml version="1.0" encoding="utf-8"?>
<documenttypes xmlns:MMString="http://www.adobe.com/schemes/data/string/">
<documenttype
id="dt-ASP-JS"
servermodel="ASP-JS"
internaltype="Dynamic"
winfileextension="asp,htm, html"
macfileextension=asp, html"
previewfile="default_aspjs_preview.htm"
file="default_aspjs.htm"
priorversionservermodel="UD4-ASP-JS" >
<title>
<loadString id="mmdocumenttypes_0title" />
</title>
<description>
<loadString id="mmdocumenttypes_0descr" />
</description>
</documenttype>
...
</documenttypes>
Note: Color coding for document types is specified in the XML files that reside in the Configuration/CodeColoring folder.
In the previous example, the loadString element identifies the localized strings that Dreamweaver uses for the title
and description for ASP-JS type documents. For more information about localized strings, see
“Providing localized
strings” on page 20.
The following table describes the tags and attributes that you can use within a document type definition file.
Tag Attribute Required Description
documenttype
(root)
Yes Parent node.
id Yes Unique identifier across all document type
definition files.
servermodel No Specifies the associated server model (case-
sensitive); by default, the following values
are valid:
ASP.NET C#
ASP.NET VB
ASP VBScript
ASP JavaScript
ColdFusion
JSP
PHP MySQL
A call to the
getServerModelDisplayName()
functions returns these names. The server
model implementation files are located in
the Configuration/ServerModels folder.
Extension developers can create new server
models by extending this list.
Komentarze do niniejszej Instrukcji