There are two ways to configure syntax highlighting in Wing:
- For minor tweaks to syntax coloring in the editor, use Syntax Formatting in the Edit > Syntax Coloring preference group. For each supported file type, and each lexical state for the file type, it is possible to set the foreground and background colors, to use bold or italic font, and to fill the end of line character so it appears as a solid block of color.
- For more comprehensive changes to syntax coloring, textual syntax coloring specifications can be placed into the syntax directory within the User Settings Directory. This directory must be created if it is not already present. The syntax coloring configuration files can be modeled on the system-wide defaults, which are stored in resources/syntax within your Wing IDE installation directory. Any values missing from these files cause Wing to fall back to the system-wide defaults. Wing must be restarted to pick up changes made in these files.
When multiple configurations are present, the preference takes precedence over any syntax files in the user settings directory, which in turn take precedence over the system-wide defaults.
Automatic Color Adjustment
If the currently selected Color Palette uses a non-white background for the editor, or if the Background Color in the Editor > Syntax Coloring preference group is set to a color other than white, then Wing will automatically adjust all configured foreground colors when necessary to ensure that the text remains visible. This avoids the need to create completely new color configurations for different editor background colors.
|« Previous||Table of Contents||Introduction for New Users »|