kat command

March 15, 2025 · View on GitHub

A cat command with syntax highlight.

kat

A cat command that almost tastes like chocolate!


Dependencies

Example on Ubuntu:

sudo apt update
sudo apt install build-essential cmake libboost-regex-dev

Install

git clone http://github.com/terroo/kat build-kat
cd build-kat
cmake -B build .
cmake --build build
sudo cmake --install build

Usage

Examples

kat main.cpp # C++ file
kat main.c # C file
kat MyClass.java # Java file
kat script.py # Python file
kat index.js # JavaScript file
kat Main.cs # C# file
kat file.txt # Text file
kat --help

Example output kat command


Supported languages

Note: This repository is still under development and does not yet support all languages and file types. If you want us to speed up the implementation of your language/file, please notify us in issues