You use this panel to customize the font, background color, and foreground color for text and elements in the Source Editor. You can specify the font and color according to editor type. You can also use this panel to specify the colors of changed text when comparing file revisions.
This panel contains the following elements.
Element | Description |
---|---|
Profile |
Select a settings profile from the dropdown list. The IDE includes several profiles by default.
You can create profiles to save different custom font and color settings. You can switch between profiles to quickly change between saved custom Source Editor settings. |
Duplicate |
Click Duplicate to create a new profile that is a copy of the selected profile. When you click Duplicate a dialog box appears where you can enter a name for the new profile. |
Restore |
Click Restore to restore the selected profile to the default settings. |
Remove |
Click Remove to delete the selected custom profile. You cannot delete the default profiles. |
Syntax |
This tab enables you to customize the appearance of text according to type and language. You can specify the font, the font color and the background color. |
Highlighting |
This tab enables you to customize the foreground and background colors for highlighted areas, including code folding and how highlighted elements appear. |
Annotations |
This tab enables you to customize the foreground and background colors of source code lines associated with annotation glyphs. Annotation glyphs are shown in the left margin of the Source Editor. |
Diff |
This tab enables you to customize the colors for indicating changed text when comparing file revisions. |
Versioning |
This tab enables you to specify the colors that are used for highlighting text in versioned files. You can specify colors according to the type of version control system. |
You can modify the appearance of text and elements in the Source Editor by setting the following properties in the tabs.
Element | Description |
---|---|
Language (Syntax tab only) |
Select a language from the drop-down list. When you select a language, the Categories pane displays the text categories in that language that you can customize. Modifications apply only to the specified language. |
Preview (Syntax tab only) |
The Preview area displays how the selected changes will appear in the Source Editor. |
Categories |
The Categories list contains the text and editor elements that can be modified in the tab. |
Font (Syntax tab only) |
The font used to display the selected text category. Click the ellipsis button (...) to open the Font Chooser to select a font. |
Foreground |
The color of the text. Choose a color from the drop-down list or choose Custom to open the Select Color dialog box. |
Background |
The color behind the text. Choose a color from the drop-down list or choose Custom to open the Select Color dialog box. |
Effects |
Choose additional effects to apply to the text. |
Wave Underlined (Annotations tab only) |
Choose a color for the underline from the drop-down list or choose Custom to open the Select Color dialog box. |
Related Topics
Developing Applications with NetBeans IDE,
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0. |