Comments on: ccat – Show ‘cat Command’ Output with Syntax Highlighting or Colorizing https://www.tecmint.com/cat-command-output-with-syntax-highlighting-or-color/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 13 Jul 2023 23:33:07 +0000 hourly 1 By: Michal Maruska https://www.tecmint.com/cat-command-output-with-syntax-highlighting-or-color/comment-page-1/#comment-1307532 Thu, 19 Dec 2019 11:37:44 +0000 https://www.tecmint.com/?p=28121#comment-1307532 I got to a similar tool with a different route: I mostly use less(1) and that has the ~/.lessfilter functionality.

That can be used to invoke one of the following

https://www.gnu.org/software/src-highlite/ 
https://gitlab.com/saalen/highlight   (this seems more up-to-date)
(apparently maybe this https://github.com/jingweno/ccat )

and so the suggested “ccat” would be … existing lesspipe(1)!

]]>
By: Ravi Saive https://www.tecmint.com/cat-command-output-with-syntax-highlighting-or-color/comment-page-1/#comment-954126 Mon, 25 Dec 2017 04:31:54 +0000 https://www.tecmint.com/?p=28121#comment-954126 In reply to lujun9972.

@Lujun9972,

Thanks for pointing out typo, I’ve corrected in the article..:)

]]>
By: lujun9972 https://www.tecmint.com/cat-command-output-with-syntax-highlighting-or-color/comment-page-1/#comment-952533 Fri, 22 Dec 2017 02:27:54 +0000 https://www.tecmint.com/?p=28121#comment-952533 There is a typo:
In order to replace cat command with ccat command system wide, add a bash alias for ccat in system *barshrc* file,
I think you mean *bashrc*

]]>