/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }