44
Customizing Dreamweaver
3.
Add a new line for each new file type. In capital letters, enter the filename extensions that
the new file type can 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
JPG,JPEG,JFIF:JPEG Image Files
4.
Save the Extensions.txt file.
5.
Restart Dreamweaver.
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:
1.
Make a backup copy of the Extensions.txt file in the Configuration folder.
2.
Open Extensions.txt in Dreamweaver or a text editor.
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.
4.
Save the Extensions.txt file.
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
<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.
To provide localized strings, perform the following steps:
1.
Place the following statement at the beginning of the document type definition file:
<?xml version="1.0" encoding="utf-8"?>
2.
Declare the
MMString
name space in the
<documenttypes>
tag:
<documenttypes
xmlns:MMString="http://www.macromedia.com/schemes/data/string/">
3.
At the location in the document type definition file where you want to provide a localized
string, use the
MMString:loadstring
directive to define a placeholder for the localized
string. You can specify this placeholder in one of the following ways:
<description>
Summary of Contents for DREAMWEAVER 8-EXTENDING DREAMWEAVER
Page 1: ...Extending Dreamweaver...
Page 8: ...8 Contents...
Page 14: ...14 Introduction...
Page 16: ......
Page 54: ...54 Customizing Dreamweaver...
Page 96: ...96 Customizing Code View...
Page 98: ......
Page 110: ...110 Extending Dreamweaver...
Page 138: ......
Page 166: ...166 Insert Bar Objects...
Page 180: ...180 Commands...
Page 248: ...248 Toolbars...
Page 260: ...260 Reports...
Page 278: ...278 Tag Libraries and Editors...
Page 288: ...288 Property Inspectors...
Page 378: ...378 Server Behaviors...
Page 398: ...398 Data Sources...
Page 432: ...432 Server Models...
Page 456: ...456 Data Translators...
Page 482: ......
Page 492: ...492 The Shared Folder...