Samples Colors
Click the Samples Colors button on the Editors page in the
Preferences dialog to customize the color palette that RegexMagic uses for the results on the Samples panel.

Color Palettes
- Default light: The default color palette when the white theme is selected in the
View menu. The palette’s plain text color uses the theme’s window text and background colors, which for the white theme are the default window text and background colors used by Windows itself. In Windows 7 you can change these colors in the Appearance section in the Windows Control Panel. Windows 10 and 11 don’t have these settings, but still allow the window colors to be changed by loading a Windows 7 theme or changing some registry keys. - Default dark: The default color palette when the dark or black theme is selected in the
View menu. The palette’s plain text color uses the theme’s window text and background colors, which are white on dark gray for the dark theme and white on black for the black theme. - Silver: Same colors as the default light palette, but with black text on a silver background. This is easier on the eyes if your monitor has a very high brightness.
- Gray: Same colors as the default dark palette, but with white text on a gray background that is not as dark as the dark gray used by the dark theme. The reduced contrast is easier on the eyes on monitors with very deep blacks.
- Harmonized light: Uses shades of dark gray for plain text and shades of light gray for background and highlighting. Uses 12 colors that are equidistant on the color wheel and of equal brightness for highlighting Samples results. This gives the results a uniform low-contrast look. Match highlighting is done with underlining using some of those 12 colors.
- Harmonized dark: Uses the opposite shades of gray as “harmonized light” and exactly the same 12 colors for highlighting.
- Harmonized shades light: Same as “harmonized light”, but adds a lighter, less saturated shade of the 12 colors for match highlighting.
- Harmonized shades dark: Same as “harmonized dark”, but adds a darker, less saturated shade of the 12 colors for match highlighting.
- Solarized light: Using the 16 colors of the Solarized palette created by Ethan Schoonover.
- Solarized dark: Same as “solarized light” but using the opposite content and background tones.
- Amber: Amber text on a dark gray background like old terminal monitors. Uses green for emphasis and a variety of colors with an amber cast for match highlighting.
- Green: Green text on a dark gray background like old terminal monitors. Uses amber for emphasis and a variety of colors with a green cast for match highlighting.
- Night light: Very dark palette with amber text. Uses colored underlining for match highlighting. Does not use any blue text and background colors, but uses some blue underlining for match highlighting.
- Red-green color blind light: Intended for people who cannot perceive the difference between red and green. All colors have equal amounts of red and green. Dark gray text on a light gray background. Uses shades of yellow and blue for match highlighting.
- Red-green color blind dark: As “red-green color blind light” but with light gray text on a dark gray background.
- Red-green color blind print: As “red-green color blind light” but with pure black text on a pure white background.
- Yellow-blue color blind light: Intended for people who cannot perceive the difference between yellow and blue. All colors have equal amounts of green and blue. Dark gray text on a light gray background. Uses shades of red and cyan for match highlighting.
- Yellow-blue color blind dark: As “yellow-blue color blind light” but with light gray text on a dark gray background.
- Yellow-blue color blind print: As “yellow-blue color blind light” but with pure black text on a pure white background.
List of Individual Colors
- Editor: Plain text: The default text colors. The editor’s background is filled with this color, and text that is not syntax colored is drawn in this text color.
- Editor: Selected text: Selection highlight.
- Field 1 to field 10: Base colors for indicating fields in RegexMagic. The colors are cycled every 10 fields. So field 11 uses the same color as field 1, field 12 the same as field 2, and so on. These colors are used throughout RegexMagic’s user interface. Every drop-down list and every button that lets you select or act on a particular field indicates that field by its number using this color. Clearly distinguishable background colors for all 10 fields makes it easier to see which field matches which part of the text.
- Editor: Page break: Color of the horizontal line indicating a page break.
- Editor: Line breaks: Color used to draw line break symbols when you’ve turned on the option to visualize line breaks.
- Editor: Whitespace: Color used to draw whitespace. The background color is always used if you set it to anything other than “default”. The text color is used to draw the space and tab symbols when you turn on the option to visualize spaces.
- Editor: Control characters: Color used to draw control characters other than tabs and line breaks. Such control characters normally should not appear in text files.
- Editor: Invalid bytes: Color used to draw stair-stepped hex numbers to indicate invalid bytes. These can end up in Samples results if the regular expression matched invalid bytes in a file. It may indicate the file was read with the wrong encoding. It’s also possible the file actually contains bytes that are invalid for its encoding.
- Editor: Extra space between lines: If the text layout adds extra space between lines then this color is used for that extra space. This can simulate the appearance of lined paper.
- Editor: Matching brackets: Color used to highlight matching brackets that do not contain any unmatched brackets.
- Editor: Incorrectly nested brackets: Color used to highlight matching brackets that contain unmatched brackets.
- Editor: Unmatched brackets: Color used to highlight brackets that do not have a matching opening or closing bracket.
Example
The example demonstrates how the 10 field color highlight fields on the Samples panel. After generating a regular expression, text that was marked to be matched by a certain field that is actually matched by the part of the regex generated for that field is highlighted as "marked and matched", which uses the color you configured with an added underline. Text that was not marked but is matched by the part of the regex generated for a field is highlighted as "unmarked yet matched", which uses the color you configured. Text that was marked to be matched by a particular field but is not matched by the generated regular expression is highlighted as "marked but not matched", which uses a dimmer version of the color you configured by blending it with the plain text color. The "marked but not matched" color is also used to highlight marked fields before the regular expression is generated.
Not shown in the example is text that is marked to be matched by one field but actually matched by the part of the regex generated for another field. This is highlighted with the color you configured for the field that actually matched that part of the text but with an added strikeout.
Import and Export
RegexMagic 3 and RegexMagic 5 use the same color palettes for their Samples panels. You can export and import the palette for the Samples panel between these two products.