Highlight (gb.eval.highlight)

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

This class reimplements Highlight in gb.eval.
This class is static.

Static properties

Static methods Constants
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  
Added  
This constant represents the style used for drawing an alternate background.
Alternate  
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 constants.
Constant  
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 is the first value that can be used for custom styles indexes.
Custom  
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 escaped characters inside strings.
Escape  
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 labels.
Label  
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  
Removed  
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