Gambas Documentation - /comp/gb.qt4.ext/highlight

/comp/gb.qt4.ext/highlight

# Highlight (gb.qt4.ext)

This class is used for implementing custom syntax highlighting.

This class is static.

Static properties | Static methods | Constants
--- | --- | ---

This constant represents the style used for drawing an alternate background.
Alternate
Return or set if the next highlighted characters will have the alternate background or not.
AlternateState
Line
Return or set if the line being highlighted is the beginning of a procedure, or something equivalent that the Editor will draw a limit for.
ShowLimit
Return the initial state of the line being highlighted.
State
Return the initial tag of the line being highlighted.
Tag
Return the text that must be highlighted.
Text

Add character states to the line being highlighted through the Highlight event handler.
Add

This constant represents the style of the editor background.
Background
This constant represents the style used for drawing a line with a breakpoint.
Breakpoint
Constant used by the Editor.Highlight property for C highlighting.
C
Constant used by the Editor.Highlight property for C++ highlighting.
CPlusPlus
Constant used by the Editor.Highlight property for CSS highlighting.
CSS
This constant represents the style used for drawing comments.
Comment
This constant represents the style used for drawing the next line to be executed.
Current
This constant represents the style used for highlighting the current line.
CurrentLine
Constant used by the Editor.Highlight property for a custom highlighting.
Custom
This constant represents the style used for drawing datatypes.
DataType
Constant used by the Editor.Highlight property for diff output highlighting.
Diff
This constant represents the style used for drawing syntactically incorrect text.
Error
This constant represents the style used for drawing subroutines, i.e. predefined functions.
Function
Constant used by the Editor.Highlight property for Gambas syntax highlighting.
Gambas
Constant used by the Editor.Highlight property for HTML highlighting.
HTML
This constant represents the style used for drawing help lines.
Help
This constant represents the style used for drawing matching braces or brackets.
Highlight
Constant used by the Editor.Highlight property for JavaScript highlighting.
JavaScript
This constant represents the style used for drawing keywords.
Keyword
Constant used by the Editor.Highlight property when no highlighting should be done.
None
This constant represents the style used for drawing normal text or text without syntax highlighting.
Normal
This constant represents the style used for drawing numbers.
Number
This constant represents the style used for drawing operators.
Operator
This constant represents the style used for drawing preprocessor lines.
Preprocessor
Constant used by the Editor.Highlight property for SQL highlighting.
SQL
This constant represents the style used for drawing selected text.
Selection
This constant represents the style used for drawing strings.
String
This constant represents the style used for drawing symbols.
Symbol
Constant used by the Editor.Highlight property for WebPage highlighting.
WebPage