2024-08-14 12:16:41 -05:00
2024-08-14 09:42:07 -05:00
2024-08-09 19:20:42 -05:00
2024-08-10 11:04:22 -05:00
2024-08-14 09:41:55 -05:00
2024-08-09 19:20:42 -05:00
2024-08-09 19:20:42 -05:00
2024-08-09 19:20:42 -05:00
2024-08-14 12:16:41 -05:00
2024-08-09 19:20:42 -05:00
2024-08-14 10:05:11 -05:00
2024-08-09 19:20:42 -05:00

ccat

ccat is a file printing tool (like 'cat') which uses Regular Expressions to enable syntax highlighting.


Features

  • Support for 11 colors: Red, Blue, Green, Magenta, Cyan, Black, White, Yellow, Gray, Orange and Dark Blue.
  • Adding more colors involves adding a line of code, then recompiling.
  • Regex-color mappings are stored in configuration files.
  • Uses the file extension to determine which configuration file to use.
  • Highly extensible - to add a config file for an specific file type, name the file <extension>.conf.
  • Support for printing line numbers with the -n flag.
  • Statically linked Go binary - no runtime dependencies, config files are distributed along with the binary.
  • Cross-platform

Installing

If you have the go command installed, run make after cloning the repository.


Getting Started

The config files are embedded within the binary. They will automatically be installed to the correct location (%APPDATA/ccat on Windows, ~/.config/ccat on UNIX) when the program is first run.


TODO:

  • Allow user to define colors at runtime by reading RGB values from a config file.
  • Provide releases.
Description
color cat - cat(1) with regex-based syntax highlighting.
Readme 2 MiB
ccat v0.1.1 Latest
2024-08-25 14:38:12 -05:00
Languages
Go 97.8%
Shell 1.9%
Makefile 0.3%