The rule editor can have user defined settings applied that will change the default font, font size and colors used for the display of rules and associated display items.
The settings are accessed from within the rule builder
Creating a profile allows the original settings to be re-applied by reverting to the default profile.
The Font used to display the rule in the rule editor can be changed from the Settings window:
The Font Size used to display the rule in the rule editor can be changed from the Settings window:
The Background Color used to display the rule in the rule editor can be changed from the Settings window.
The Background Color dynamically changes depending if the rule being entered in the rule editor is in error or not. This setting applies when the rule is NOT in error.
The Background Color (With Error) used to display the rule in the rule editor can be changed from the Settings window.
The Background Color dynamically changes depending if the rule being entered in the rule editor is in error or not. This setting applies when the rule IS in error.
The Background Color (Read Only) used to display a preview of the rule when using Extract Variable or Replace In rules.
Check this option to display Line Numbers in the Rule Editor window.
The rule editor color codes various items it recognizes as display items, the color of which can be changed to suit your preference, these include:
Display Item | Description | Default Foreground Color | Default Background Color | Preview |
---|---|---|---|---|
Normal | The color of all other keyboard characters that do not fall into any of the other categories in this table. | |||
Function | The color of any DriveWorks function used in the rule editor. | |||
Reference | The color of any Constant, Variable, Special Variable, Table, Control value or hierarchical reference used in the rule editor. | |||
#NAME? | The color of any Reference that has its name entered incorrectly in the rule editor. | |||
Boolean | The color of any TRUE or FALSE value used in the rule editor. | |||
Number | The color of any numeric value used in the rule editor. | |||
String | The color of all strings within quotes " " used in the rule editor. | |||
Operator | The color of any valid operator (+, -, *, /, <, >, =, etc.) used in the rule editor. | |||
Active Parenthesis | The color of parenthesis ( or ) used in the rule editor. When the cursor is placed in front of or immediately after any parenthesis (i.e. it is active) the background of the parenthesis and the one it is matched with will change to the display item setting. |
The Foreground Color (color of the font) used for the display item in the rule editor can be changed from the Display Item Settings window.
The Font used for display items can be made Bold by enabling this setting.
Only the Active Parenthesis display item has this setting enabled.