PowerArgs.Cli.ConditionalKeywordHighlighter.ConditionalKeywordHighlighter C# (CSharp) Method

ConditionalKeywordHighlighter() public method

Creates the highlighter.
public ConditionalKeywordHighlighter ( string keyword, Func conditionEval, ConsoleColor fg = null, ConsoleColor bg = null, System.StringComparison comparison = StringComparison.InvariantCulture ) : System
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
return System
        public ConditionalKeywordHighlighter(string keyword, Func<RichCommandLineContext, HighlighterContext, bool> conditionEval, ConsoleColor? fg = null, ConsoleColor? bg = null, StringComparison comparison = StringComparison.InvariantCulture)
            : base(keyword, fg, bg,comparison)
        {
            this.conditionEval = conditionEval;
        }