C# Class PowerArgs.Cli.NumericHighlighter

A highlighter that highlights numeric values
Inheritance: FixedHighlightTokenHighlighter
Afficher le fichier Open project: adamabdelhamed/PowerArgs

Méthodes publiques

Méthode Description
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

Method Details

NumericHighlighter() public méthode

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.
Résultat System

ShouldBeHighlighted() public méthode

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
Résultat bool