示例#1
0
        /// <summary>
        /// Builds a word scanner.
        /// </summary>
        /// <returns>A <see cref="Wilco.SyntaxHighlighting.WordScanner"/> object.</returns>
        protected override IScanner BuildWordScanner()
        {
            WordScanner scanner = new WordScanner(this.Tokenizer, this.ScannerResult);

            scanner.WordNodes              = new WordNode[1];
            scanner.WordNodes[0]           = new WordNode();
            scanner.WordNodes[0].ForeColor = Color.Blue;
            scanner.WordNodes[0].Entities.AddRange(this.GetKeywords());
            return(scanner);
        }
示例#2
0
        /// <summary>
        /// Builds a word scanner.
        /// </summary>
        /// <returns>A <see cref="Wilco.SyntaxHighlighting.WordScanner"/> object.</returns>
        protected override IScanner BuildWordScanner()
        {
            WordScanner scanner = new WordScanner(this.Tokenizer, this.ScannerResult);

            scanner.WordNodes              = new WordNode[2];
            scanner.WordNodes[0]           = new WordNode();
            scanner.WordNodes[0].ForeColor = Color.Blue;
            scanner.WordNodes[0].Entities.AddRange(this.GetKeywords());
            scanner.WordNodes[1]           = new WordNode();
            scanner.WordNodes[1].ForeColor = Color.Red;
            scanner.WordNodes[1].Entities.AddRange(new String[] { "#region", "#endregion" });
            return(scanner);
        }
示例#3
0
        /// <summary>
        /// Builds a word scanner.
        /// </summary>
        /// <returns>A <see cref="Wilco.SyntaxHighlighting.WordScanner"/> object.</returns>
        protected override IScanner BuildWordScanner()
        {
            WordScanner scanner = new WordScanner(this.Tokenizer, this.ScannerResult);

            scanner.WordNodes              = new WordNode[2];
            scanner.WordNodes[0]           = new WordNode();
            scanner.WordNodes[0].ForeColor = Color.Blue;
            scanner.WordNodes[0].Entities.AddRange(this.GetKeywords());
            scanner.WordNodes[0].NavigateUrl = "http://www.php.net/{0}";
            scanner.WordNodes[1]             = new WordNode();
            scanner.WordNodes[1].ForeColor   = Color.Orange;
            scanner.WordNodes[1].Entities.AddRange(this.GetFunctions());
            scanner.WordNodes[1].NavigateUrl = "http://www.php.net/{0}";
            scanner.WordNodes[1].IgnoreCase  = true;
            return(scanner);
        }
示例#4
0
        /// <summary>
        /// Builds a word scanner.
        /// </summary>
        /// <returns>A <see cref="Wilco.SyntaxHighlighting.WordScanner"/> object.</returns>
        protected override IScanner BuildWordScanner()
        {
            WordScanner scanner = new WordScanner(this.Tokenizer, this.ScannerResult);

            scanner.WordNodes              = new WordNode[3];
            scanner.WordNodes[0]           = new WordNode();
            scanner.WordNodes[0].ForeColor = Color.Blue;
            scanner.WordNodes[0].Entities.AddRange(this.GetKeywords());

            scanner.WordNodes[1]           = new WordNode();
            scanner.WordNodes[1].ForeColor = Color.DarkBlue;
            scanner.WordNodes[1].Entities.AddRange(this.GetKeywords2());

            scanner.WordNodes[2]           = new WordNode();
            scanner.WordNodes[2].ForeColor = Color.Red;
            scanner.WordNodes[2].Entities.AddRange(this.GetKeywords3());
            scanner.WordNodes[2].NavigateUrl = "http://www.ruby-doc.org/docs/rdoc/1.9/classes/{0}.html";
            return(scanner);
        }
示例#5
0
        /// <summary>
        /// Builds a word scanner.
        /// </summary>
        /// <returns>A <see cref="Wilco.SyntaxHighlighting.WordScanner"/> object.</returns>
        protected virtual IScanner BuildWordScanner()
        {
            WordScanner scanner = new WordScanner(this.tokenizer, this.scannerResult);

            return(scanner);
        }