TextHighlighter (gb.highlight)
This class is the parent class of all syntax highlighters.
It allows to create a custom highlighter based on a definition file.
Diese Klasse kann als Objekt benutzt werden, indem man bei Bedarf eine versteckte Instanz erstellt.
Diese Klasse ist erstellbar.
Diese Klasse wirkt wie ein
nur lesbar statisches Array.
Statische Eigenschaften
List
|
Return the list of all registered syntax highlighters.
|
Statische Methoden
GetName
|
Return the display name of an highlighter from its internal name.
|
Register
|
Register a custom highlighter based on a definition file.
|
Eigenschaften
CanRewrite
|
Return or set if the highlighter is allowed to rewrite the text to highlight.
|
Comment
|
Return or set if the highlighted text is a comment.
|
Key
|
Return the highlighter internal name.
|
Keywords
|
Return the list of keywords associated with the highlighter.
|
LengthAdded
|
Return or set the number of characters added (or removed) after the text has been rewritten.
|
Limit
|
Return or set if the highlighted text is a function limit.
|
Name
|
Return the highlighter display name.
|
States
|
Return the list of state names used by the highlighter.
|
TextAfter
|
Return or set the highlighted text after it has been rewritten.
|
Methoden
Paint
|
Paint highlighted text on the current painter.
|
RegisterState
|
Register a state for that highlighter.
|
Run
|
Highlight some piece of text.
|
ToANSI
|
Return the result of text highlighting as VT100 ANSI characters that can be printed on a terminal.
|
ToHTML
|
Return the result of text highlighting as HTML.
|
ToRichText
|
Return the result of text highlighting as rich text.
|