Project

color_puts

0.0
Low commit activity in last 3 years
A long-lived project that still receives updates
Color your output with inline color codes
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

~> 0.4
 Project Readme

ColorPuts

Colorize your output with markdown inspired syntax

Installation

With Bundler:

gem "color_puts"

Usage

Example:

ColorPuts.colorize(<<~TEXT)
  A (bold)[bold], (bright_red)[bright red boat] with an (#FF8000)[orange sail] was
  sailing (on_blue)[on a blue sea] with (rainbow)[a rainbow in the background].
TEXT

Colors

The colorization is done with Sai, so you can use any style it supports or any color name in its registry.

Contributing

Contributions are welcome!