File: colorit.1.in

package info (click to toggle)
dictd 1.10.11.dfsg-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,468 kB
  • ctags: 2,165
  • sloc: ansic: 20,428; sh: 3,823; makefile: 756; yacc: 491; perl: 410; cpp: 276; lex: 255
file content (100 lines) | stat: -rw-r--r-- 2,182 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
.\" colorit.1 -- 
.\" Created: Tue, 28 Oct 2003 22:19:36 +0200
.\"  by Aleksey Cheusov <vle@gmx.net>

.TH COLORIT 1 "28 Oct 2003" "" ""
.SH "NAME"
colorit - a script for markuping the text input
.SH "SYNOPSIS"
.nf
.BI colorit " [OPTIONS] [files...]"
.fi
.SH "DESCRIPTION"
.B colorit
is a script for markuping text input and sending a result to pager (
.I less -r
by default) or stdout.
Markuping rules are described in a configuration file
which is filtered by preprocessor (the default is
.I m4
).
The define HOME equal to your home directory is set for the preprocessor
using -D option supported by both
.I m4
and
.I cpp.
This script can be used for colorizing the text by
ANSI escape sequences, or making a simple text conversions
and may be used as a pager instead of
.I less
by
.I dict
or other programs. In particular, log files,
.I dict,
.I cc,
.I make,
or
.I diff
output can easily be colorized and viewed.
.SH "OPTIONS"
.TP
.BR \-V " or " \-\-version
Shows version information.
.TP
.BR \-h " or " \-\-help
Shows help information.
.TP
.BI \-c " file\fR or "  \-\-config " file"
Specify configuration file.  The default is
.I ~/.coloritrc
or
.I @SYSCONFDIR@/colorit.conf
.TP
.BI \-P " pager\fR or "  \-\-pager " pager"
Specify a pager (- for none). The default is
.I less -r
.TP
.BI \-\-pp " preprocessor"
Specify a preprocessor (- for none).
.SH "FILES"
.TP
.I ~/.coloritrc
User's
.B colorit
configuration file
.TP
.I @SYSCONFDIR@/colorit.conf
System
.B colorit
configuration file
.SH "CONFIG FILE"
Empty lines or lines beginning with sharp sign (`#')
are ignored. All other lines have this structure:
.I command arg1 arg2 ... argN.
All commands are processed one-by-one for each input line.
.br
.I args
strings can be surrounded by double-quote
characters.
.br
Currently, only
.I mark
command is available
having the following arguments:
.I regexp pre_string post_string
.br
The
.I pre_string
and
.I post_string
are inserted at the beginning and the end of substring matched
by regular expression
.I regexp
.SH "BUGS"
The only supported escape sequence in the strings surrounded by double quotes
is \\033.
.SH "SEE ALSO"
.BR less (1),
.BR m4 (1),
.BR cpp (1),
.BR dict (1)