Method | Description | |
---|---|---|
RegexHighlighter ( string pattern, ConsoleColor fg = null, ConsoleColor bg = null ) : System |
Creates the highlighter
|
|
ShouldBeHighlighted ( |
Returns true if the regular expression is matched, false otherwise
|
public RegexHighlighter ( string pattern, ConsoleColor fg = null, ConsoleColor bg = null ) : System | ||
pattern | string | The regular expression pattern |
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. |
return | System |
public ShouldBeHighlighted ( |
||
readerContext | context from the reader | |
highlighterContext | context about the current token | |
return | bool |