Gambas Documentation - /comp/gb.eval/highlight

/comp/gb.eval/highlight

# Highlight (gb.eval)

This class provides some useful features for analyzing and highlighting a line of Gambas code.

This class is static.

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

This constant represents the style used for drawing an alternate background.
Alternate
Returns the position of each token, in bytes, after a call to the Analyze method.
Positions
Returns the result of the Analyze method as an array of string tokens.
Symbols
Returns the rewritten code line after a call to the Analyze method.
TextAfter
Returns the type of each token after a call to the Analyze method.
Types

Analyzes a Gambas code line.
Analyze
Removes comments and/or strings from a Gambas code line.
Purge

This constant represents the style of the editor background.
Background
This constant represents the style used for drawing a line with a breakpoint.
Breakpoint
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
This constant represents the style used for drawing datatypes.
DataType
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
This constant represents the style used for drawing help lines.
Help
This constant represents the style used for drawing matching braces or brackets.
Highlight
This constant represents the style used for drawing keywords.
Keyword
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 commands.
Preprocessor
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