1
2COLORIT(1)                                                          COLORIT(1)
3
4
5

NAME

7       colorit - a script for markuping the text input
8

SYNOPSIS

10       colorit [OPTIONS] [files...]
11

DESCRIPTION

13       colorit  is  a  script for markuping text input and sending a result to
14       pager ( less -r by default) or stdout.  Markuping rules  are  described
15       in  a configuration file which is filtered by preprocessor (the default
16       is m4 ).  The define HOME equal to your home directory is set  for  the
17       preprocessor using -D option supported by both m4 and cpp.  This script
18       can be used for colorizing the text by ANSI escape sequences, or making
19       a simple text conversions and may be used as a pager instead of less by
20       dict or other programs. In particular, log files, dict,  cc,  make,  or
21       diff output can easily be colorized and viewed.
22

OPTIONS

24       -V or --version
25              Shows version information.
26
27       -h or --help
28              Shows help information.
29
30       -c file or --config file
31              Specify  configuration  file.   The  default  is ~/.coloritrc or
32              /etc/colorit.conf
33
34       -P pager or --pager pager
35              Specify a pager (- for none). The default is less -r
36
37       --pp preprocessor
38              Specify a preprocessor (- for none).
39

FILES

41       ~/.coloritrc
42              User's colorit configuration file
43
44       /etc/colorit.conf
45              System colorit configuration file
46

CONFIG FILE

48       Empty lines or lines beginning with sharp sign (`#') are  ignored.  All
49       other  lines have this structure: command arg1 arg2 ... argN.  All com‐
50       mands are processed one-by-one for each input line.
51       args strings can be surrounded by double-quote characters.
52       Currently, only mark command is available having  the  following  argu‐
53       ments: regexp pre_string post_string
54       The  pre_string  and  post_string are inserted at the beginning and the
55       end of substring matched by regular expression regexp
56

BUGS

58       The only supported escape sequence in the strings surrounded by  double
59       quotes is \033.
60

SEE ALSO

62       less(1), m4(1), cpp(1), dict(1)
63
64
65
66                                  28 Oct 2003                       COLORIT(1)
Impressum