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

CodeHighlightRenderOptions Pennington.Markdown.Extensions

Options for customizing the CSS classes used in the code highlight renderer.

Properties

OuterWrapperCss string
required
CSS class for the outer wrapper element.
PreBaseCss string
required
CSS classes for the Pre element.
PreStandaloneCss string
required
Additional CSS classes for the Pre element when not in a tabbed code block.
StandaloneContainerCss string
required
CSS classes for the container when not in a tabbed code block.

Fields

Default CodeHighlightRenderOptions
Default CSS class configuration used by the code highlight renderer.

Pennington.Markdown.Extensions.CodeHighlightRenderOptions

namespace Pennington.Markdown.Extensions;

/// Options for customizing the CSS classes used in the code highlight renderer.
public record CodeHighlightRenderOptions
{
    /// Default CSS class configuration used by the code highlight renderer.
    
public static readonly CodeHighlightRenderOptions Default
; /// CSS class for the outer wrapper element.
public string OuterWrapperCss { get; set; }
/// CSS classes for the Pre element.
public string PreBaseCss { get; set; }
/// Additional CSS classes for the Pre element when not in a tabbed code block.
public string PreStandaloneCss { get; set; }
/// CSS classes for the container when not in a tabbed code block.
public string StandaloneContainerCss { get; set; }
}