COLORIT(1)
π COLORIT(1) β colorit, the markup script bestie π
πΈ NAME πΈ
colorit β a script for markuping the text input. Periodt.
β¨ SYNOPSIS β¨
colorit [OPTIONS] [files...]
π¦ DESCRIPTION π¦
Okay so colorit is literally a script for markuping text input and sending the result to a pager β less -r by default β or to stdout. The markuping rules are described in a configuration file, and that config file gets filtered by a preprocessor (the default is m4). Thereβs a HOME define set equal to your home directory for the preprocessor, using the -D option that both m4 and cpp support. π
This script can colorize text using ANSI escape sequences, or do simple text conversions, and it may be used as a pager instead of less by dict or other programs. In particular, log files, dict, cc, make, or diff output can easily be colorized and viewed. No cap, itβs giving useful. β¨
π OPTIONS π
-Vor--versionβ shows version information.-hor--helpβ shows help information.-cfile or--configfile β specify configuration file. The default is~/.coloritrcor/etc/dict/colorit.conf.-Ppager or--pagerpager β specify a pager (-for none). The default isless -r.--pppreprocessor β specify a preprocessor (-for none).
π FILES π
~/.coloritrcβ userβscoloritconfiguration file./etc/dict/colorit.confβ systemcoloritconfiguration file.
π§ CONFIG FILE π§
Empty lines, or lines beginning with a 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 the mark command is available, and it has the following arguments: regexp pre_string post_string. The pre_string and post_string are inserted at the beginning and the end of the substring matched by the regular expression regexp. Slay. π
π BUGS π
The only supported escape sequence in the strings surrounded by double quotes is \033. Thatβs it, bestie β literally just that one. π
π SEE ALSO π
less(1), m4(1), cpp(1), dict(1).
Signing off from the 28 Oct 2003 edition of COLORIT(1) β manual page icon behavior, fr fr. π«Άπ
π¦ where this page comes from
- arch rolling: dictd 1.13.3-1 Β· GPL-1.0-or-later AND GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms