Set the color and font of identifers

Create a custom keyword set for keywords you want to highlight using a specific font and color in a Code Editor document.

A keyword set allows you to group a specified list of keywords for the purpose of assigning a color and font for display in Code Editor. For example, if you wanted the terms FOO and BAR to appear using a specific color and/or font, you would add them to a keyword set, then define the style for that keyword set to use the color and font you desire.

  1. Select Tools > Preferences.
  2. Under Code Editor, select the Behavior & Display preference page.
  3. In the Language combobox, select the language.
  4. Check the Use custom settings checkbox.
  5. Click on the Language Specific tab.
  6. Update the details for an extra identifier set.
    This is the set you will add your custom keywords to, and that you will later define a style for.
    Tip: This procedure uses the Genero Studio interface to create and manage your extra identifiers sets. These sets can also be managed by importing an XML file. See Define identifiers for more information.
    1. Under Extra identifiers, select the name of a set.
    2. Click the Edit identifiers icon.
    3. Modify the set name, if desired.
    4. Use the appropriate toolbar icons in the Edit List dialog to add, modify, and remove keywords from the set.
    5. When you are finished, click OK.
    At this point, you have grouped a set of custom keywords into one of the eight provided custom keyword sets.
  7. Go back to the Pages list along the left-hand side of the Preferences window. Under Code Editor, select the Color & Font preference page.
  8. Under the Style Specific Settings section, select the Language and check the Use custom settings checkbox.
  9. Scroll and select the name of the keyword set.
  10. Under Color, use the color picker to set the foreground and background colors for the keywords in this set.
  11. Under Font, select the font family, size, bold and italic settings. To change the font family or size, check the Use custom font for selected style checkbox.