SyntaxTheme

Class

Represents a mapping between ColorCode scopes and Spectre.Console styles.

Namespace: RazorConsole.Core.Rendering.Syntax
Assembly: RazorConsole.Core

Definition

public class SyntaxTheme

Constructors

1
NameTypeDescription
SyntaxTheme(string, Style, IReadOnlyDictionary<string, Style>?)()Constructor

Properties

2
NameTypeDescription
Appearance
DefaultStyleStyleGets the default style when a scope is not matched.
Other
NameStringGets the name of the theme.

Methods

2
NameTypeDescription
CreateDefault()SyntaxThemeCreates the default syntax theme.
GetStyle(string?)()StyleGets the style for the specified ColorCode scope name.