Метод | Описание | |
---|---|---|
ConditionalKeywordHighlighter ( string keyword, Func |
Creates the highlighter.
|
|
ShouldBeHighlighted ( |
Returns true if the token matches the keyword and the given conditional evaluation returns true
|
public ConditionalKeywordHighlighter ( string keyword, Func |
||
keyword | string | The keyword to match |
conditionEval | Func |
The conditional match evaluation function |
fg | ConsoleColor | The foreground color of this highlighter. If null, the console default is used. |
bg | ConsoleColor | The background color of this highlighter. If null, the console default is used. |
comparison | System.StringComparison | determines how characters are compared |
Результат | System |
public ShouldBeHighlighted ( |
||
readerContext | context from the reader | |
highlighterContext | context about the current token | |
Результат | bool |