메소드 | 설명 | |
---|---|---|
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. |
리턴 | System |
public ShouldBeHighlighted ( |
||
readerContext | context from the reader | |
highlighterContext | context about the current token | |
리턴 | bool |