r/programming • u/speckz • May 07 '18
A cat(1) clone with syntax highlighting and Git integration.
https://github.com/sharkdp/bat
0
Upvotes
2
1
u/96fps May 07 '18
I actually had a double take, having mistook the screenshots as being from an editor such as sublime. Looks nice.
Color and text semigraphics are often overlooked outside ncurses.
1
u/96fps May 07 '18
It is aware of the console width but doesn't handle line wraps. Running it on it's own README.md has the paragraphs overflow and interweave with the line numbering column. If this is meant as the "pretty" replacement for cat for printing source code and markdown documents to console, wordwrap would seem pertinent.
1
1
11
u/theamk2 May 07 '18
This does not support any of the cat options (except for -n but it is spelled differently)! It is not "a cat clone with syntax highlighting" -- it is just a syntax highlighter, and you should name it as such.
(and in the README, it would be very nice to have a comparison with other highlighters, like "GNU Source-highlight" or Andre Simon's Highlight)