SyntaxOptions

Class

Options that control syntax highlighting output.

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

Definition

public sealed record SyntaxOptions : IEquatable<SyntaxOptions>

Constructors

1
NameTypeDescription
SyntaxOptions()Constructor—

Properties

4
NameTypeDescription
Appearance
LineNumberStyleStyleGets or sets the style used for line numbers when they are rendered.
TabWidthInt32Gets or sets the number of spaces used to expand tab characters.
Other
DefaultSyntaxOptionsGets the default options instance.
PlaceholderMarkupStringGets or sets the placeholder text written when no code is provided.

Methods

4
NameTypeDescription
Equals(SyntaxOptions?)()Boolean—
Equals(object?)()Boolean—
GetHashCode()Int32—
ToString()String—

Operators

2
NameTypeDescription
operator ==(SyntaxOptions?, SyntaxOptions?)()Boolean—
operator !=(SyntaxOptions?, SyntaxOptions?)()Boolean—