MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Manual page 50

Extending dreamweaver
Hide thumbs Also See for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER:
Table of Contents

Advertisement

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
Cut the line that corresponds to the new default, and paste it at the beginning of the file, to
3
make it the first line of the file.
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.
Localized strings
Within a document type definition file, the
display title and description for the document type. You can use the
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:
Place the following statement at the beginning of the document type definition file:
1
<?xml version="1.0" encoding="utf-8"?>
Declare 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,
3
use the
MMString:loadstring
specify this placeholder in one of the following ways:
<description>
<loadstring>myJSPDocType/Description</loadstring>
</description>
or
<description>
<loadstring id="myJSPDocType/Description" />
</description>
In these examples,
placeholder for the localized string. The localized string is defined in the next step.
In the Configuration/Strings folder, create a new XML file (or edit an existing file) that defines
4
the localized string. For example, the following code, when placed in the Configuration/Strings/
strings.xml file, defines the
<strings>
...
<string id="myJSPDocType/Description"
value=
"<![CDATA[JavaServer&nbsp;Page with <em>special</em> features]]>"
/>
...
</strings>
50
Chapter 2: Extending Dreamweaver
name space in the
directive to define a placeholder for the localized string. You can
myJSPDocType/Description
myJSPDocType/Description
and
<title>
<description>
tag:
<documenttypes>
is a unique string identifier that acts as a
string:
subtags specify the
MMString:loadstring

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents