/pcat

A replacement for `cat` that highlights source code

Primary LanguageGoMIT LicenseMIT

pcat

pcat is a pretty cat util, applying syntax highlighting to outputted code if possible.

Installation

Currently requires a 256-bit colour terminal (terminal256).

todo: provide binary release

Usage

pcat filename.html

pcat < filename.html

Roadmap

  • Add more config for styling and output formats.
  • Check for large binary files before reading in.
  • Pretty up the code

License

This project is licensed under the MIT License. Do whatever you want, just keep the copyright notice.