# colorit(1) - man - phpman


[COLORIT(1)](https://www.chedong.com/phpMan.php/man/COLORIT/1/markdown)                                                                                [COLORIT(1)](https://www.chedong.com/phpMan.php/man/COLORIT/1/markdown)



## NAME
       colorit - a script for markuping the text input

## SYNOPSIS
       **colorit** _[OPTIONS]_ _[files...]_

## DESCRIPTION
       **colorit** is a script for markuping text input and sending a result to stdout.  Markuping rules
       are described in a configuration file which is filtered by preprocessor (the default is _m4_ ).
       The define HOME equal to your home directory is set for the preprocessor using -D option sup‐
       ported by both _m4_ and _cpp._  This script can be used for colorizing the text  by  ANSI  escape
       sequences,  or making a simple text conversions and may be used for colorizing output of _dict_
       or other programs. In particular, log files, _dict,_ _cc,_ _make,_ or _diff_  output  can  easily  be
       colorized and viewed.

## OPTIONS
### -V --version
              Shows version information.

### -h --help
              Shows help information.

### -c --config
              Specify configuration file.  The default is _~/.coloritrc_ or _/etc/dictd/colorit.conf_

       **--pp** _preprocessor_
              Specify a preprocessor (- for none).

## FILES
       _~/.coloritrc_
              User's **colorit** configuration file

       _/etc/dictd/colorit.conf_
              System **colorit** configuration file

## CONFIG FILE
       Empty  lines  or lines beginning with sharp sign (`#') are ignored. All other lines have this
       structure: _command_ _arg1_ _arg2_ _..._ _argN._  All commands are processed one-by-one for each  input
       line.
       _args_ strings can be surrounded by double-quote characters.
       Currently,  only  _mark_ command is available having the following arguments: _regexp_ _pre_string_
       _post_string_
       The _pre_string_ and _post_string_ are inserted at the beginning and the end of substring matched
       by regular expression _regexp_

## BUGS
       The only supported escape sequence in the strings surrounded by double quotes is \033.

## SEE ALSO
       [**less**(1)](https://www.chedong.com/phpMan.php/man/less/1/markdown), [**m4**(1)](https://www.chedong.com/phpMan.php/man/m4/1/markdown), [**cpp**(1)](https://www.chedong.com/phpMan.php/man/cpp/1/markdown), [**dict**(1)](https://www.chedong.com/phpMan.php/man/dict/1/markdown)



                                             28 Oct 2003                                  [COLORIT(1)](https://www.chedong.com/phpMan.php/man/COLORIT/1/markdown)
