Skip to content

Colorized cat output for 150+ different languages and configuration files.

Notifications You must be signed in to change notification settings

Shivang44/colorized-cat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Colorized Cat

Turn those boring cat outputs:

uncolorized cat output

...into colorized (syntax-highlighted) outputs!

colorized cat output

Colorized cat supports over 150 languages due to the fact that it uses PrismJS to tokenize and calculate the syntax highlighting for each token!

Installation

You can clone and install it locally, but to make it easy, this utility is published as an npm module.

npm install -g colorized-cat

The code is available on github.com

Usage

ccat YOUR_FILE

Note: At this time, file extensions (like file.py or file.js) are required to detect the language. In the future, hopefully this requirement can be removed.

Support languages

This utility currently supports the following languages:

  • C
  • C#
  • Haskell
  • JavaScript
  • PHP
  • Python
  • Yaml

More are quickly being added. If you don't see your favorite language listed, make a bug report!

Contributing

This project will require lots of additional work to support more languages, have configurable options, and have strong testing. All contributions are welcome. At this time there is no contributing guide, but please feel free to make bug reports or PR's as you see fit!

About

Colorized cat output for 150+ different languages and configuration files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published