Extends IThemeAwareCodeHighlighter by tokenising a line once and returning the colour of every token for both variants, so a theme switch can recolour the existing runs without tokenising the code again or rebuilding the text.
public interface IDualThemeCodeHighlighter : IThemeAwareCodeHighlighter, ICodeHighlighter
kind:method, kind:property, kind:ctor. Press Esc to clear.HighlightBoth(ReadOnlyMemory<Char>, String?, ref Object?)HighlightBoth(ReadOnlyMemory<Char>, String?) from the state the previous line ended in: see Highlight(ReadOnlyMemory<Char>, String?, ref Object?). The default ignores state.