File: c_highlight.so

package info (click to toggle)
lookup 1.08b-10
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 1,112 kB
  • ctags: 1,306
  • sloc: ansic: 12,638; makefile: 245; perl: 174; sh: 53
file content (47 lines) | stat: -rw-r--r-- 1,333 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.TP
[default] highlight [\fIboolean\fP]
.br
Sets matched-string highlighting on or off for the
.I "selected slot"
(default off), or reports the current status if no
argument is given.
However, if\c
.Q default
is specified, the value to be inherited as the default by
subsequently-loaded files is set (or reported).

If on, shows in bold or reverse video (see below) that part of the line
which was matched by the search
.IR regex .
If multiple regexes were given, that part matched by the first regex
is show.

Note that a regex might match a portion of a line which is later
removed by a
.I modify
parameter. In this case, no highlighting is done.

Can be temporarily toggled by the\c
.Q "!h!"
line prefix.


.TP
highlight style [\fIbold\fP | \fIinverse\fP | \fIstandout\fP | \fI<___>\fP]
.br
Sets the style of highlighting for when highlighting is done.
.I Inverse
(inverse video) and
.I standout
are the same. The default is
.IR bold .
You can also give an HTML tag, such as\c
.Q "<BOLD>"
and items will be wrapped by <BOLD>...</BOLD>. This would be particularly
useful when the output is going to a CGI, as when lookup has been built
in a server configuration.

Note that the highlighting is affected by using raw VT100/xterm control
sequences. This isn't particularly very nice if your terminal doesn't
understand them. Sorry.