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>
Содержание DREAMWEAVER 8-EXTENDING DREAMWEAVER
Страница 1: ...Extending Dreamweaver...
Страница 8: ...8 Contents...
Страница 14: ...14 Introduction...
Страница 16: ......
Страница 54: ...54 Customizing Dreamweaver...
Страница 96: ...96 Customizing Code View...
Страница 98: ......
Страница 110: ...110 Extending Dreamweaver...
Страница 138: ......
Страница 166: ...166 Insert Bar Objects...
Страница 180: ...180 Commands...
Страница 248: ...248 Toolbars...
Страница 260: ...260 Reports...
Страница 278: ...278 Tag Libraries and Editors...
Страница 288: ...288 Property Inspectors...
Страница 378: ...378 Server Behaviors...
Страница 398: ...398 Data Sources...
Страница 432: ...432 Server Models...
Страница 456: ...456 Data Translators...
Страница 482: ......
Страница 492: ...492 The Shared Folder...