Associating editors with additional files types
You can associate editors with a file type.
Procedure
- Associate an editor with a file type.
- Click Window > Preferences > General > Editors > File Associations.
- Configure the associations in the File Associations window.
- If you cannot complete step 1 because your Eclipse-based
editor recognizes only a file that is based on the contents of the
file, you might need to first map the content type with its file extension
before you can associate an additional file type with the editor.
- Map a content type with a file extension.
- Click Window > Preferences > General > Content Types. The Content Type window displays.
- Select a content type in the Content Type window, and then click Add. The Define a New File Type window displays.
- Type the name of the file type, and then click OK.
- Complete step 1 to associate an editor with a file type.
- Map a content type with a file extension.
Parent topic: Editing source code

