ccat
colorizing cat with syntax highlighting
TLDR
Display file with syntax highlighting
SYNOPSIS
ccat [options] file...
DESCRIPTION
ccat is a drop-in replacement for cat that adds syntax highlighting to file contents displayed in the terminal. It automatically detects the programming language from the file extension and applies color coding to keywords, strings, comments, and other syntax elements.
The tool supports a wide range of languages including JavaScript, Python, Go, Ruby, C, C++, Java, and JSON. It ships as a single binary with no external dependencies, providing native execution speed. Output can be rendered for light or dark terminal backgrounds, and HTML output is available for embedding highlighted code in web pages.
PARAMETERS
--html
Output as HTML--bg=color
Background color: light, dark-G key=color
Set custom color codes--palette
Display color palette-C, --color=mode
Color mode: always, never, auto
SUPPORTED LANGUAGES
- JavaScript / TypeScript
- Python
- Go
- Ruby
- C / C++
- Java
- JSON
- And more via Pygments
ALIASING
Replace cat with ccat:
CAVEATS
Written in Go (owenthereal version) or Python (welbornprod version). Requires terminal with color support.
