Adobe 38040334 - Dreamweaver CS3 User Manual page 27

Extending dreamweaver
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

To add a new document type:
Make a backup copy of the Extensions.txt file in the Configuration folder.
1
Open Extensions.txt in Dreamweaver or a text editor.
2
Add a new line for each new file type. In capital letters, enter the filename extensions that the new file type can
3
have, separated by commas; then add a colon and a brief descriptive phrase to show in the pop-up menu for file types
that appears in the File > Open dialog box.
For example, for JPEG files, enter
Save the Extensions.txt file.
4
Restart Dreamweaver.
5
To see the changes, select File > Open and click the pop-up menu of file types.
To change the Dreamweaver default File > 0pen file type:
Make a backup copy of the Extensions.txt file in the Configuration folder.
1
Open Extensions.txt in Dreamweaver or a text editor.
2
3
Cut the line that corresponds to the new default, and paste it at the beginning of the file, to make it the first line
of the file.
Save the Extensions.txt file.
4
5
Restart Dreamweaver.
To see the changes, select File > Open and click the pop-up menu of file types.
Localized strings
Within a document type definition file, the
description for the document type. You can use the
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.
To provide localized strings:
Place the following statement at the beginning of the document type definition file:
1
<?xml version="1.0" encoding="utf-8"?>
Declare the
namespace in the
2
MMString
<documenttypes
xmlns:MMString="http://www.Macromedia.com/schemes/data/string/">
At the location in the document type definition file where you want to provide a localized string, use the
3
directive to define a placeholder for the localized string. You can specify this placeholder in
MMString:loadstring
one of the following ways:
<description>
<loadstring>myJSPDocType/Description</loadstring>
</description>
or
<description>
<loadstring id="myJSPDocType/Description" />
</description>
JPG,JPEG,JFIF:JPEG Image Files
and
<title>
<description>
MMString:loadstring
<documenttypes>
subtags specify the display title and
directive in the subtags as a placeholder
tag:
DREAMWEAVER CS3
21
Extending Dreamweaver

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents