Prototype

property OnSyntaxHighlighting: TSyntaxHighlightingEvent read FOnSyntaxHighlighting write SetOnSyntaxHighlighting;

Description

Occurs when a block of code needs to be highlighted.


aLanguage contains the language defined in the script if any. FIll aStyles either with presets or create your own.

If a control associated with this component also handles this event, it is called first, TMDStyle.OnSyntaxHighlighting is called only if the control returns an empty list.


See TMDCustomControl.OnSyntaxHighlighting for an example.

See also

TSyntaxHighlightingEvent

TMDSyntax

TMDSyntaxStyle

TMDCustomControl.OnSyntaxHighlighting