cromo / synesthesia

Consistently colorize input using regex matches

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

image

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.

About

Consistently colorize input using regex matches

License:MIT License


Languages

Language:Go 56.1%Language:Python 43.9%