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

KeywordHighlighter() public method

Creates the highlighter.
public KeywordHighlighter ( string keyword, ConsoleColor fg = null, ConsoleColor bg = null, System.StringComparison comparison = StringComparison.InvariantCulture ) : System
keyword string The keyword to highlight whenever it is found
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 strings are compared. By default the comparison is case sensitive
return System
        public KeywordHighlighter(string keyword, ConsoleColor? fg = null, ConsoleColor? bg = null, StringComparison comparison = StringComparison.InvariantCulture)
            : base(fg, bg)
        {
            this.keyword = keyword;
            this.comparison = comparison;
        }