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 πŸ’…

  • -V or --version β€” shows version information.
  • -h or --help β€” shows help information.
  • -c file or --config file β€” specify configuration file. The default is ~/.coloritrc or /etc/dict/colorit.conf.
  • -P pager or --pager pager β€” specify a pager (- for none). The default is less -r.
  • --pp preprocessor β€” specify a preprocessor (- for none).

πŸŽ€ FILES πŸŽ€

  • ~/.coloritrc β€” user’s colorit configuration file.
  • /etc/dict/colorit.conf β€” system colorit configuration 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