Changing the default file type

http://help.adobe.com/en_US/Dreamweaver/10.0_Extending/WS5b3ccc516d4fbf351e63e3d117f508c8de-7ff4.html

http://help.adobe.com/en_US/Dreamweaver/10.0_Extending/WS5b3ccc516d4fbf351e63e3d117f53d6108-7fda.html


Changing the default file type

By default, Dreamweaver shows all the file types it recognizes in the File > Open dialog box. You can use a pop-up menu in that dialog box to limit the display to certain types of files. If most of your work involves a specific file type (such as ASP files), you can change the default display. The file type listed on the first line of the Dreamweaver Extensions.txt file becomes the default.

Note: If you want to see all file types in the File > Open dialog box (even the files Dreamweaver cannot open), select All Files (*.*). It is different from All Documents, which shows only the files Dreamweaver can open.

Change the Dreamweaver default File > Open 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 corresponding to the new default. Then paste it at the beginning of the file so that it becomes the first line of the file.

  4. Save the file.

  5. Restart Dreamweaver.

To see the new default, select File > Open, and look at the pop-up menu of file types.

Add new file types to the menu in the File > Open dialog box

  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 description to show in the pop-up menu for file types that appear in the File > Open dialog box.

    For example, for JPEG files, enter the following: JPG,JPEG,JFIF:JPEG Image Files

  4. Save the file.

  5. Restart Dreamweaver.

To see the changes, select File > Open, and click the pop-up menu of file types.

 


Adding and modifying document extensions and file types

By default, Dreamweaver shows all the file types it recognizes in the File > Open dialog box. After creating a document type, extension developers must update the appropriate Extensions.txt file. At times, the user maybe on a multiuser system (such as Windows XP, Windows Vista, or Mac OS X). In such cases, another Extensions.txt file exists in the user Configuration folder. The user must update the Extensions.txt file because it is the instance that Dreamweaver looks for and parses.

The location of the Configuration folder of the user depends on the platform of the user.

Windows XP platform uses the following location:

hard disk:\Documents and Settings\username\Application Data\Adobe\Dreamweaver CS4\Configuration

Note: It is possible that this folder is inside a hidden folder.

Windows Vista platform uses the following location:

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.

댓글
  • No Nickname
    No Comment
  • 권한이 없습니다.
    {{m_row.m_nick}}
    -
제목 작성자 날짜
공대여자
공대여자
mins01
공대여자
공대여자
공대여자
공대여자
공대여자
mins
mins
mins
mins
mins
mins
mins01