Table of Contents

Class HtmlRenderOptions

Namespace
BlazOrbit.SyntaxHighlight.Rendering
Assembly
BlazOrbit.SyntaxHighlight.dll

Specifies options for rendering highlighted HTML output, including colors and fonts.

public sealed class HtmlRenderOptions
Inheritance
object
HtmlRenderOptions

Constructors

HtmlRenderOptions()

public HtmlRenderOptions()

Properties

BackgroundColor

Gets the background color.

public string BackgroundColor { get; init; }

Property Value

string

DarkTheme

Gets a dark theme preset.

public static HtmlRenderOptions DarkTheme { get; }

Property Value

HtmlRenderOptions

Default

Gets the default render options (same as DarkTheme).

public static HtmlRenderOptions Default { get; }

Property Value

HtmlRenderOptions

DefaultColor

Gets the default text color.

public string DefaultColor { get; init; }

Property Value

string

FontFamily

Gets the font family.

public string FontFamily { get; init; }

Property Value

string

FontSize

Gets the font size.

public string FontSize { get; init; }

Property Value

string

IncludeStyles

Gets a value indicating whether to include inline CSS styles.

public bool IncludeStyles { get; init; }

Property Value

bool

LightTheme

Gets a light theme preset.

public static HtmlRenderOptions LightTheme { get; }

Property Value

HtmlRenderOptions

TokenColors

Gets the dictionary mapping token types to colors.

public Dictionary<TokenType, string> TokenColors { get; init; }

Property Value

Dictionary<TokenType, string>