Class SyntaxHighlighter

Namespace
Forma
Assembly
Forma.dll

Document-bound syntax-color provider analogous to Godot's SyntaxHighlighter resource. Override GetLineSyntaxHighlightingCore(int) to return colored source ranges for a line.

public abstract class SyntaxHighlighter
Inheritance
SyntaxHighlighter
Derived
Inherited Members

Constructors

SyntaxHighlighter()

protected SyntaxHighlighter()

Properties

TextEdit

public TextEdit TextEdit { get; }

Property Value

TextEdit

Methods

ClearHighlightingCache()

public void ClearHighlightingCache()

GetLineSyntaxHighlighting(int)

public IReadOnlyList<SyntaxHighlightSpan> GetLineSyntaxHighlighting(int line)

Parameters

line int

Returns

IReadOnlyList<SyntaxHighlightSpan>

GetLineSyntaxHighlightingCore(int)

protected abstract IReadOnlyList<SyntaxHighlightSpan> GetLineSyntaxHighlightingCore(int line)

Parameters

line int

Returns

IReadOnlyList<SyntaxHighlightSpan>

OnClearHighlightingCache()

protected virtual void OnClearHighlightingCache()

OnInvalidateFromLine(int)

protected virtual void OnInvalidateFromLine(int line)

Parameters

line int

OnUpdateCache()

protected virtual void OnUpdateCache()

UpdateCache()

public void UpdateCache()

Events

Changed

Raised when cached highlighting was invalidated and the owning editor should redraw.

public event EventHandler Changed

Event Type

EventHandler