Extends ICodeHighlighter with explicit dark/light variant highlighting, enabling code block renderers to update token colours in-place when the theme changes without rebuilding the entire document.
public interface IThemeAwareCodeHighlighter : ICodeHighlighter
kind:method, kind:property, kind:ctor. Press Esc to clear.HighlightVariant(ReadOnlyMemory<Char>, String?, Boolean, ref Object?)HighlightVariant(ReadOnlyMemory<Char>, String?, Boolean) from the state the previous line ended in: see Highlight(ReadOnlyMemory<Char>, String?, ref Object?). The default ignores state.