Class SyntaxHighlightingComponent
Syntax highlighting tools
Inheritance
object
SyntaxHighlightingComponent
Namespace
Syntax
public class SyntaxHighlightingComponent
Constructors
SyntaxHighlightingComponent(string, Color, Color, bool, bool)
Makes an instance of the syntax highlighter component class
Declaration
public SyntaxHighlightingComponent(string componentMatch, Color componentForegroundColor, Color componentBackgroundColor, bool useBackgroundColor, bool useForegroundColor)
Parameters
| Name | Type | Description |
|---|---|---|
| componentMatch | string | Regular expression to match in input |
| componentForegroundColor | Color | Foreground color of the component |
| componentBackgroundColor | Color | Background color of the component |
| useBackgroundColor | bool | Whether the syntax highlighter can use the background color or not |
| useForegroundColor | bool | Whether the syntax highlighter can use the foreground color or not |
Exceptions
| Type | Condition |
|---|---|
| TerminauxException |
Properties
ComponentBackgroundColor
Component background color
Property Value
Color
Declaration
[JsonIgnore]
public Color? ComponentBackgroundColor { get; }
ComponentForegroundColor
Component foreground color
Property Value
Color
Declaration
[JsonIgnore]
public Color? ComponentForegroundColor { get; }
ComponentMatch
Regular expression to match a component
Property Value
Regex
Declaration
[JsonIgnore]
public Regex? ComponentMatch { get; }
UseBackgroundColor
Component background color
Property Value
bool
Declaration
[JsonIgnore]
public bool UseBackgroundColor { get; }
UseForegroundColor
Component background color
Property Value
bool
Declaration
[JsonIgnore]
public bool UseForegroundColor { get; }