TTMSFNCMemoThemeRule Class
A single syntax-token coloring rule that maps a token scope to a foreground color, background color, and font style.
API unit family: TMSFNCMemoCustomTheme
Inherits from: TCollectionItem
Syntax
TTMSFNCMemoThemeRule = class(TCollectionItem)
Properties
| Name | Description |
|---|---|
| Background | Background color applied to text matching the token scope; leave as gcNull to use the editor default. |
| FontStyle | Font style (bold, italic, underline) applied to text matching the token scope. |
| Foreground | Foreground color applied to text matching the token scope; leave as gcNull to use the editor default. |
| Token | Token scope string (e.g. keyword, comment, string) that this rule targets. |
Methods
| Name | Description |
|---|---|
| AsJSObject | Serialises the rule as a Monaco-compatible JSON token-color object. |