You can set general preferences for the EGL
editor and can supplement them by clicking a hypertext link that displays
preferences for Eclipse text editors.
To set the general preferences for EGL, do as follows:
- From the main menu, click . A Preferences window
is displayed.
- From the navigation tree, expand EGL and
click Editor. An Editor pane
is displayed.
- In the Editor pane, set or clear the
following EGL editor settings:
- Annotate errors in text
- Underlines errors in the source code, with a red line, and provides
an error indicator in the vertical ruler (the left margin). The underlines
and indicators are displayed when you save the file. You can hover
over the underline or error indicator to see an error message.
- Annotate errors in overview ruler
- Shows a red error indicator in the overview ruler (that is, in
the right margin of the editor) whenever an error is found in the
source code. The indicators are displayed when you save the file.
You can click the error indicator to go to the line that has the error,
and you can hover over the error indicator to see the error message.
- Annotate errors as you type
- Causes the display of error indicators as you type, not only after
you save the file. The specific indicators affected by this setting
depend on two other settings:
- If Annotate errors in text is set, the
editor responds to a source-code error by underlining the error with
a red line and by providing an error indicator in the vertical ruler
(the left margin). You can hover over the underline or error indicator
to see an error message.
- If Annotate errors in overview ruler is
set, the editor responds to a source-code error by showing a red error
indicator in the overview ruler (that is, in the right margin). You
can click the error indicator to go to the line that has the error,
and you can hover over the error indicator to see the error message.
- To control whether line numbers are displayed in EGL files:
- In the Editor pane of the Preferences window,
click the Text Editors link, which takes you
to the menu path.
- Select or clear the Show line numbers check
box.
- To save the changes and remain in the Preferences window,
click Apply. To save the changes and exit the
window, click OK.