The KeywordHighlighter type exposes the following members.

Constructors

  Name Description
Public method KeywordHighlighter
Initializes a new instance of the KeywordHighlighter class

Methods

  Name Description
Public method AddEnclosure(String, String, CharClass)
Adds a pair of strings and character-class that characters between the pair will be classified as.
Public method AddEnclosure(String, String, CharClass, Boolean)
Adds a pair of strings and character-class that characters between the pair will be classified as.
Public method AddEnclosure(String, String, CharClass, Char)
Adds a pair of strings and character-class that characters between the pair will be classified as.
Public method AddEnclosure(String, String, CharClass, Boolean, Char)
Adds a pair of strings and character-class that characters between the pair will be classified as.
Public method AddEnclosure(String, String, CharClass, Boolean, Char, Boolean)
Adds a pair of strings and character-class that characters between the pair will be classified as.
Public method AddKeywordSet(array<String>[]()[][], CharClass)
Adds a set of keywords to be highlighted.
Public method AddKeywordSet(array<String>[]()[][], CharClass, Boolean)
Adds a set of keywords to be highlighted.
Public method AddLineHighlight(String, CharClass)
Adds a line-highlight entry.
Public method AddLineHighlight(String, CharClass, Boolean)
Adds a line-highlight entry.
Public method AddRegex(String, CharClass)
Entry a pattern specified with a regular expression (case sensitive) to be highlighted.
Public method AddRegex(String, IList<(Of <<'(CharClass>)>>))
Entry a pattern specified with a regular expression (case sensitive) containing capturing groups which will be highlighted.
Public method AddRegex(Regex, CharClass)
Entry a pattern specified with a regular expression to be highlighted.
Public method AddRegex(Regex, IList<(Of <<'(CharClass>)>>))
Entry a pattern specified with a regular expression containing capturing groups which will be highlighted.
Public method AddRegex(String, Boolean, CharClass)
Entry a pattern specified with a regular expression to be highlighted.
Public method AddRegex(String, Boolean, IList<(Of <<'(CharClass>)>>))
Entry a pattern specified with a regular expression containing capturing groups which will be highlighted.
Public method ClearEnclosures
Clears all registered enclosures.
Public method ClearKeywords
Clears registered keywords.
Public method ClearLineHighlight
Clears all registered line-highlight entries.
Public method ClearRegex
Removes all entry of patterns specified with a regular expression to be highlighted.
Public method Highlight(Document)
Parse and highlight keywords.
Public method Highlight(Document, Int32%, Int32%)
Parse and highlight keywords.
Public method SetKeywords Obsolete.
(Please use AddKeywordSet instead.)

Properties

  Name Description
Public property CanUseHook
Gets whether a highlighter hook procedure can be installed or not.
Public property HighlightsNumericLiterals
Gets or sets whether to enable built-in logic to recognize numeric literals or not.
Public property HookProc
Gets or sets highlighter hook procedure.
Public property WordCharSet
Gets or sets word-character set.

See Also