Show HN: Command line tool for viewing files in color (soegaard.github.io)

1 points by soegaard ↗ HN
The tool `peek` show files in color in the terminal. A wide range of popular programming language and file types are supported.

Today I added support for binary files inspired by the HN post on colors in hex editors.

Each supported programming language is backed by its own (reusable) lexer. The lexer provides a stream of tokens to the colorer. Using streams means that you will see the top of large files at once.

The idea to make `peek` came from a need to look at CSS files in the terminal. I wanted color swatches and other niceties from the browser. Also, I wanted an option to fix alignment in machine generated CSS files.

Enjoy.

0 comments

[ 3.1 ms ] story [ 11.2 ms ] thread

No comments yet.