Setting fonts and text coloring in the Editor
You can customize the fonts and background and foreground colors for various types of text (tokens) in the Editor using the
Fonts and Colors
property for each type of editor found underEditor Settings
in the Global Options window. The following are some of the tokens you can set fonts and colors for:
- default text (meaning that the fonts and colors assigned here are the ones used for all types of text, except where overridden by configuration of the specific text types).
- different types of values such as strings and integers
- text blocks such as current caret row, selected text, editor bookmarks, and guarded (uneditable) text
- block comments and line comments
- tokens such as methods, identifiers, and keywords
- items found in incremental searches and items found in highlight searches
- status bar and status bar when highlighted
To change the font or color for a token:
- Choose Project | Settings... from the main menu.
- In the Global Options window, expand the
Editor Settings
node and choose an editor type (Java
,HTML
,Plain Text
, orJSP
).- Click the Properties tab of the property sheet.
- Click in the value field for the
Fonts and Colors
and click the ... button to bring up the Fonts and Colors property editor.![]()
- In the Syntax panel, click the token you would like to change the coloring of.
- The right pane of the dialog consists of the following four panels:
- The first three panels each have an Inherit checkbox. If you check this box in a category, the text type will inherit the font or color from the default text type (or from another token it is dependent on).
These panels each have a button showing the current font or foreground or background color or font for the selected token in the left pane. Press one of these buttons if you want to change the value it displays.
- If you have pressed the button in either the Foreground Color or Background Color panel, press the drop-down arrow that appears and choose a color or press the ... button to bring up the Color Editor.
- If you are using the Color Editor, choose one of the six color palettes (Swatches, HSB, RGB, AWT palette, Swing palette, and System palette) by clicking its tab, choose the color you want within the palette, and then press OK to return to the Fonts and Colors property editor. See Color Editor for more information on using the different color palettes.
- If you have pressed the button in the Font panel, you can then press the ... button to open the Font Property Editor, select a font face, style, and size, and then press OK to return to the Fonts and Colors property editor.
- Click OK in the Fonts and Colors property editor to record your changes.
Contents | Prev | Next | Index |