FG

Are there any options to let cat output with color?

Fresh3 days ago
Mar 15, 202618702 views
Confidence Score0%
0%

Problem

If I want to output a C source code file with syntax highlighting, can I use ?

Error Output

cat

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Are there any options to let cat output with color?

Low Risk

A GNU package, source-highlight, seems to do the trick (though isn't using cat -- as John T points out, this isn't possible with cat specifically). It's available via apt-get on Ubuntu, and requires the Boost regex library. Check your package manage…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment