#cli #highlight #color #terminal #text

app colorizer

Colorizer is a tool for highlighting words in your terminal

9 releases (stable)

2.1.0 Sep 12, 2023
2.0.0 Aug 26, 2023
1.1.2 Aug 3, 2021
1.1.0 Jun 24, 2021
0.1.0 Jun 17, 2021

#165 in Command line utilities

Download history 17/week @ 2023-10-26 4/week @ 2023-11-02 2/week @ 2023-11-09 3/week @ 2023-11-16 13/week @ 2023-11-23 48/week @ 2023-11-30 11/week @ 2023-12-14 20/week @ 2023-12-21 1/week @ 2023-12-28 9/week @ 2024-01-04 9/week @ 2024-01-18 18/week @ 2024-01-25 18/week @ 2024-02-01 21/week @ 2024-02-08

66 downloads per month

MIT license

161 lines



Colorizer is a tool for highlighting words in your terminal. It accepts one or more pattern parameters as input and highlights each match in one of the available colors:

  • Black
  • Red
  • Green
  • Yellow
  • Blue
  • Purple
  • Cyan
  • White


To see the available options, run:

$ colorizer --help


You can install Colorizer using the following command:

$ cargo install colorizer


Example 1

Highlight the word "world" in red:

$ echo "hello world" | colorizer --color red --regex world

Example 2

Highlight words containing the letter "r" in green:

$ echo "hello world" | colorizer --regex "\w+r\w+" --color green


On startup, Colorizer checks for a configuration file in the home directory ~/.config/colorizer/config.yml. It allows you to use profiles defined in this file.

Create a configuration file in this directory and use a profile from it via the -p or --profile parameter. If the configuration file exists and Colorizer is launched without specifying a profile name, the "default" profile will be used. Colorizer does not terminate abnormally if the configuration file is not found or if the specified profile does not exist.

Usage Example

If the config file exists, you can use the "my_profile" profile as follows:

$ echo "hello, world!" | colorizer -p my_profile

If the config file exists, the "default" profile will be used if no profile is specified:

echo "hello, world!" | colorizer

Configuration Example

Here's an example of a configuration file in YAML format:

      - "hello .*"
      - "foo"
      - "bar .*"
      - ".*"

Enjoy using Colorizer and add some color to your terminal experience!


~145K SLoC