C# 클래스 PowerArgs.Cli.NumericHighlighter

A highlighter that highlights numeric values
상속: FixedHighlightTokenHighlighter
파일 보기 프로젝트 열기: adamabdelhamed/PowerArgs

공개 메소드들

메소드 설명
NumericHighlighter ( ConsoleColor fg = null, ConsoleColor bg = null ) : System

Creates the highlighter

ShouldBeHighlighted ( RichCommandLineContext readerContext, HighlighterContext highlighterContext ) : bool

Returns true if the current token is a numeric value, false otherwise

메소드 상세

NumericHighlighter() 공개 메소드

Creates the highlighter
public NumericHighlighter ( ConsoleColor fg = null, ConsoleColor bg = null ) : System
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

ShouldBeHighlighted() 공개 메소드

Returns true if the current token is a numeric value, false otherwise
public ShouldBeHighlighted ( RichCommandLineContext readerContext, HighlighterContext highlighterContext ) : bool
readerContext RichCommandLineContext context from the reader
highlighterContext HighlighterContext context about the current token
리턴 bool