beautypg.com

Adobe Extending Dreamweaver CS4 User Manual

Page 25

background image

19

EXTENDING DREAMWEAVER CS4

Customizing Dreamweaver

hard disk:\Users\username\AppData\Roaming\Adobe\Dreamweaver CS4\Configuration

Mac OS X platform uses the following location:

hard disk:\Users/username/Library/Application Support/Adobe/Dreamweaver CS4/Configuration

If Dreamweaver cannot find the Extensions.txt file in the Configuration folder of the user, Dreamweaver looks for it
in the Dreamweaver Configuration folder.

Note: On multiuser platforms, Dreamweaver parses the copy of the Extensions.txt file in the Configuration folder of the
user, not the file in the Dreamweaver Configuration folder. So, if you edit the copy of Extensions.txt that resides in the
Dreamweaver Configuration folder, Dreamweaver is not aware of the changes.

To create a document extension, you can either add the new extension to an existing document type or create a
document type.

Add a new extension to an existing document type

1

Edit MMDocumentTypes.xml.

2

Add the new extension to the

winfileextension

and

macfileextension

attributes of the existing document type.

Add a new document type

1

Make a backup copy of the Extensions.txt file in the Configuration folder.

2

Open Extensions.txt in a text editor.

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.
The pop-up menu 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.

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 a text editor.

3

Cut the line that corresponds to the new default. Then, 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.

See also

http://www.adobe.com/go/16410

This manual is related to the following products: