Consistently colorize input using regex matches
Go Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.gopack.yml
LICENSE
README.md
synesthesia
synesthesia.go

README.md

Synesthesia

A tool for basic syntax highlighting of arbitrary text files and streams.

Overview

Synesthesia takes regular expressions and uses them to colorize stdin. Moreover, identical matches are colored with the same color, making it a good tool for visualizing large files or streaming data.

Installation

At the moment, just put the synesthesia script file in your PATH and make it executable.

Usage

synesthesia ([flags]|[patterns])... [-- [patterns]...]

Where patterns are any valid Python regular expressions and flags are any of the following flags. Multiple patterns are or'd together in the order they are provided. Multiple flags controlling the same parameter may also be specified; the last one specified for that parameter will be used.

Flags:
-b --background     Turn on or off background colorization. (default off)
   --no-background
-f --foreground     Turn on or off foreground colorization. (default on)
   --no-foreground
-h --help           Print usage information.

License

Synesthesia is licensed under the MIT license. The full license is in the LICENSE file.