7.7. Setting Ant Editor Options

Problem

You want to customize the Ant editor’s appearance.

Solution

Select Window Preferences Ant Editor, and choose from the items in that dialog.

Discussion

You have some control over the Ant editor’s appearance using the Window Preferences Ant Editor dialog. In Eclipse 2.1.2, the Ant editor is really little more than a simple XML editor, but you can specify such items as the colors used in syntax highlighting, and whether the editor shows an overview ruler or line numbers, as shown in Figure 7-13.

Setting options for the Ant editor

Figure 7-13. Setting options for the Ant editor

For example, turning on line numbers makes the Ant editor display them, as shown in Figure 7-14.

Line numbers in the Ant editor

Figure 7-14. Line numbers in the Ant editor

Get Eclipse Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.