This documentation is also published as Markdown for efficient machine reading: the whole site is indexed at /llms.txt, and every page has a clean Markdown copy under /_llms/. These are generated from the same source and cost far fewer tokens to read than this rendered HTML.

Skip to main content Skip to navigation

HighlightingOptions Pennington.Infrastructure

Options for code highlighting configuration.

Properties

Highlighters IReadOnlyList<ICodeHighlighter>
Highlighters registered via AddHighlighter or the generic overload.

Methods

AddHighlighter

#
public void AddHighlighter(ICodeHighlighter highlighter)

Registers a pre-built highlighter instance.

Parameters

highlighter ICodeHighlighter

AddHighlighter<T>

#
public void AddHighlighter<T>()

Registers a highlighter type, constructed with its parameterless constructor.

Pennington.Infrastructure.HighlightingOptions

namespace Pennington.Infrastructure;

/// Options for code highlighting configuration.
public class HighlightingOptions
{
    /// Registers a pre-built highlighter instance.
    
public void AddHighlighter(ICodeHighlighter highlighter)
; /// Registers a highlighter type, constructed with its parameterless constructor.
public void AddHighlighter<T>()
; /// Highlighters registered via AddHighlighter or the generic overload.
public IReadOnlyList<ICodeHighlighter> Highlighters { get; }
}