TextMateCodeBlockRenderer Class

Definition

Assembly MarkView.Avalonia.SyntaxHighlighting.dll
Inherits Object → Markdig.Renderers.MarkdownObjectRenderer{MarkView.Avalonia.Rendering.AvaloniaRenderer,Markdig.Syntax.CodeBlock} → AvaloniaObjectRenderer<TObject>
Implements Markdig.Renderers.IMarkdownObjectRenderer
Show inherited members (11)

Replaces the built-in CodeBlockRenderer when syntax highlighting is active. For fenced code blocks it highlights each line with the CodeHighlighter and, when that highlighter is an IDualThemeCodeHighlighter, recolours the tokens in-place when the user switches between light and dark themes — without tokenising the code again or rebuilding the surrounding document tree.

public sealed class TextMateCodeBlockRenderer : AvaloniaObjectRenderer<CodeBlock>, IMarkdownObjectRenderer
Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Methods (1)