Method | Description | |
---|---|---|
CplHighlightingStrategy ( ICplParserFactory p_cpfLexerFactory ) : System |
A simple construstor that sets the LexerFactory to use.
|
|
GetColorFor ( TokenClass p_ttpTokenClass ) : |
Gets the HighlightColor for the specified class of token.
|
|
GetColorFor ( string p_strColourName ) : |
Gets the HighlightColor for the specified class of token.
|
|
MarkTokens ( IDocument document ) : void |
Highlights the tokens in the given document.
|
|
MarkTokens ( IDocument document, List |
Highlights the tokens in the given lines in the given document.
|
Method | Description | |
---|---|---|
GetTokenClass ( |
Determines the token class of the given token type.
|
|
HandleToken ( IDocument document, IToken j ) : void |
Colourises the given token and adds it to the document.
|
public CplHighlightingStrategy ( ICplParserFactory p_cpfLexerFactory ) : System | ||
p_cpfLexerFactory | ICplParserFactory | The factory to use to create the CPL lexer used to highlight the code. |
return | System |
public GetColorFor ( TokenClass p_ttpTokenClass ) : |
||
p_ttpTokenClass | TokenClass | The token class for which the
/// |
return |
public GetColorFor ( string p_strColourName ) : |
||
p_strColourName | string | |
return |
protected GetTokenClass ( |
||
p_intTokenType | The token type to classify. | |
return | TokenClass |
protected HandleToken ( IDocument document, IToken j ) : void | ||
document | IDocument | The document being highlighted. |
j | IToken | The token to highlight. |
return | void |
public MarkTokens ( IDocument document ) : void | ||
document | IDocument | The document being highlighted. |
return | void |
public MarkTokens ( IDocument document, List |
||
document | IDocument | The document being highlighted. |
lines | List |
The lines to highlight. |
return | void |