< Previous | Next >

Lesson 3: Associate the file with the Ant editor

You can associate the publish.xml file with the Ant editor so that the file opens in the Ant editor by default.
The Ant editor includes the following features:
  • Syntax highlighting
  • Content and code assist, including Ant-specific templates
  • Annotations
For more information about the Ant editor, see the online help in the product.

To associate the publish file with the Ant editor:

  1. Click Window > Preferences.
  2. In the Preferences window, expand General, then expand Editors, and then click File Associations.
  3. If the File types list does not include publish.xml, follow these steps:
    1. To the right of the File types list, click Add.
    2. In the New File Type window, type publish.xml and click OK.
  4. In the File types list, click publish.xml if it is not already selected.
  5. If the Associated editors list does not include Ant Editor, follow these steps:
    1. To the right of the Associated editors list, click Add.
    2. In the Editor Selection window, select Ant Editor and click OK.
  6. In the Associated editors list, click Ant Editor, click Default, and then click OK. The Ant icon should be added to the left of the publish.xml file name in the Project Explorer view.
    Note: If the Ant icon is not added, close the Project Explorer view and look at the file in the Navigator view.
< Previous | Next >

Feedback