Class SyntaxHighlightingComponent
Syntax highlighting tools
Inheritance
object
SyntaxHighlightingComponent
Namespace: Terminaux.Reader.Highlighting
Assembly: Terminaux.dll
Syntax
public class SyntaxHighlightingComponent
Constructors
| Edit this page View SourceSyntaxHighlightingComponent(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
| Type | Name | Description |
|---|---|---|
| string | componentMatch | Regular expression to match in input |
| Color | componentForegroundColor | Foreground color of the component |
| Color | componentBackgroundColor | Background color of the component |
| bool | useBackgroundColor | Whether the syntax highlighter can use the background color or not |
| bool | useForegroundColor | Whether the syntax highlighter can use the foreground color or not |
Exceptions
| Type | Condition |
|---|---|
| TerminauxException |
Properties
| Edit this page View SourceComponentBackgroundColor
Component background color
Declaration
[JsonIgnore]
public Color? ComponentBackgroundColor { get; }
Property Value
| Type | Description |
|---|---|
| Color |
ComponentForegroundColor
Component foreground color
Declaration
[JsonIgnore]
public Color? ComponentForegroundColor { get; }
Property Value
| Type | Description |
|---|---|
| Color |
ComponentMatch
Regular expression to match a component
Declaration
[JsonIgnore]
public Regex? ComponentMatch { get; }
Property Value
| Type | Description |
|---|---|
| Regex |
UseBackgroundColor
Component background color
Declaration
[JsonIgnore]
public bool UseBackgroundColor { get; }
Property Value
| Type | Description |
|---|---|
| bool |
UseForegroundColor
Component background color
Declaration
[JsonIgnore]
public bool UseForegroundColor { get; }
Property Value
| Type | Description |
|---|---|
| bool |