# Ant Editor Preferences

The following preferences can be changed on the Ant > Editor page.

## Appearance options

Option | Description | Default
--- | --- | ---
Mark occurrences of the selected element in the current buildfile | This option allows you to select elements and mark occurrences in the current buildfile. | Off
Keep marks when selection changes | This option allows you to keep marks when the selection changes. | On

Here is what the Appearance tab of the Ant editor preference page looks like.

## Syntax options

The Foreground options located on the Syntax tab, allow you to format the font of comments, constant strings, DTD declarations, processing instructions, tags and text. The Preview pane allows you to see your changes before you apply them.

Option | Description | Default
--- | --- | ---
Foreground | This table is used to change the foreground colour of the selected element (within the table). |
Colour | This option allows you to select a colour to set for the selected foreground element. |
Bold | This option allows you to set the bold state of the selected foreground element. | Off
Italic | This option allows you to set the italic state of the selected foreground element. | Off
Preview | Shows you a preview of the changes made to the selected foreground element. |

Here is what the Syntax tab of the Ant editor preference page looks like.

## Problems options

The Problems options allow you to ignore all buildfile problems or to specify the specific files that you do not want the Ant Editor to check for problems. You can also set the severity level for buildfile problems such as task configuration, an incomplete classpath, property setting tasks, import tasks, and security problems.

Option | Description | Default
--- | --- | ---
Ignore all buildfile problems | This option allows you to ignore all buildfile problems by default. | Off
Names | This option allows you to specify the names of buildfiles that will NOT be checked for problems in the Ant editor. Entries in this field are comma-separated. |
Task configuration | This option allows you to set the severity for task configuration problems. | Ignore
Incomplete classpath | This option allows you to set the severity for incomplete classpath problems. | Warning
Property setting tasks | This option allows you to set the severity for property setting tasks problems. | Ignore
Import tasks | This option allows you to set the severity for import tasks problems. | Warning
Security problems | This option allows you to set the severity for security problems. | Warning

Here is what the Problems tab of the Ant editor preference page looks like.

## Folding options

The Folding options allow you to enable folding when opening a new editor and to specify which region types should be folded.

Option | Description | Default
--- | --- | ---
Enable folding when opening a new editor | This option allows you to always enable folding for any newly created Ant editors. | On
DTD blocks | This option allows you to always have DTD blocks in a buildfile automatically folded when opened in an Ant editor. | Off
Comments | This option allows you to always have comments in a buildfile automatically folded when opened in an Ant editor. | Off
Defining tasks | This option allows you to always have defining tasks in a buildfile automatically folded when opened in an Ant editor. | Off
Targets | This option allows you to always have targets in a buildfile automatically folded when opened in an Ant editor. | Off

Here is what the Folding tab of the Ant editor preference page looks like.

Ant support

Ant Editor
General Ant preferences
Ant runtime preferences
Ant formatter preferences
Ant templates preferences