/partial

Usage:

/PARTIAL regexp


Creates a macro which will hilite the part of a line containing text matched by the regular expression regexp. Remember that regular expressions are case sensitive. The new macro is a fall-thru, so multiple /partials (and other triggers) can match the same text.

The attribute(s) for hilited text are determined by the %{hiliteattr} variable. The default is bold (hiliteattr=B). Colors are also available.

For example, "/partial [Hh]awkeye" will hilite any occurrence of "Hawkeye" or "hawkeye".

Unlike version 3.2, a partial hilite will be applied to every match on a line, not just the first match.

/partial regexp
is equivalent to
/def -Ph -F -tregexp

See: attributes, patterns, /hilite, /def


Back to index
Back to tf home page
Copyright © 1995, 1996, 1997, 1998, 1999, 2002, 2003, 2004, 2005, 2006-2007 Ken Keys