Reference: Display Filters: HLPatt
Move Up Move to Top
Contents: Filter Overview User Interface & Options
Example Variables
Filter Overview This filter highlights article text matching certain patterns using a defined color and font. For example, you might highlight your cat's name appearing in article bodies in the rec.pets.cats.* hierarchy, or highlight common acronyms such as ROTFL or FWIW.

Back to Top

User Interface The user interface for this filter looks like this:

The available configuration options are:

  • Pattern - An AmigaOS pattern matching the text that should be highlighted.

  • Case Sensitive - If set, pattern matching is case sensitive.

  • Fast Check - Since pattern matching is slow on some systems, an initial faster check for these fixed strings is performed, and only lines which contain one or more of the given strings are checked for the actual pattern. This can save quite a few expensive pattern matches. This string should contain one or more strings separated by a vertical bar ("|") character.

  • Match Mode - This can be set to Shorest Match, to match the shortest section of the line which matches the given pattern, or Longest Match, to match the longest.

    For example, if an article line contains:

      foo test bloot blah

    and the pattern is foo*t, then the shortest match is foo t, while the longest is foo test bloot.

  • Font - If non-null, this font is used to highlight text matching the given pattern.

  • Color - If selected, this color is used to display text matching the given pattern.

  • Style - The text style for displayed text.

Back to Top

Example Here is an example of some text with a HLPatt filter set to highlight the word Saginaw in a different color and font.

Back to Top

Variables There are no variables supported by this filter.