Setting EGL preferences for coloring syntax

You can change how EGL code is displayed in the EGL editor.

Do as follows:
  1. From the main menu, click Window > Preferences. The Preferences window is displayed.
  2. From the navigation tree, expand EGL > Editor and click Syntax Coloring. The Syntax Coloring pane is displayed.
  3. The Syntax Coloring pane of the Preferences window shows the following EGL style preferences:
    Background color
    Select one of the following options to define the background color in the EGL source file:
    System Default
    Use the colors currently defined as part of the system configuration.
    Custom
    Click the radio button to select a color from the color palette. The color palette is displayed when clicking the button next to the Custom label. After you have selected a color, click OK to save your choice. The color is shown in the Preview field.
    Element
    Select the color for each element of source data in your file. You can also make the data bold. To set a color, follow these steps:
    1. Select the type of text in the Element list.
    2. Click the box next to the Color label. A color palette is displayed.
    3. Select the desired color and click OK.
    4. Click the check box for the Bold field to bold the text.
    Repeat the steps for each type of text. The results are shown in the Preview box.
  4. In the navigation tree, expand General > Appearance and then click Colors and Fonts. The Colors and Fonts pane is displayed.
  5. In the Colors and Fonts pane, expand EGL in the tree and then click EGL Editor Text Font.
  6. Click Edit. A Font window is displayed.
  7. In the Font window you can specify one or more of the following settings:
    • Type or select a font style in the Font field.
    • Type or select a font style in the Font style field.
    • Type or select a font size in the Size field.
    • Type or select a color in the Color field.
    • Select the Strikeout check box if you want a line to run through the middle of the text.
    • Select the Underline check box if you want a line under the text.
    • The Script menu lets you select a type of script. The default is Western.
    You can see a preview of your selections in the Sample section. When you are finished making your selections, click OK.
  8. To use the default operating system font, click the Use System Font button.
  9. To use the default workbench font, click the Reset button.
  10. To set the font for all editors (not just the EGL editor) to the default workbench font, click the Restore Defaults button.
  11. To save the changes and remain in the Preferences window, click Apply. To save the changes and exit the window, click OK.