Skip to content

cromo/synesthesia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published