4 Sep
2025
4 Sep
'25
11:33 p.m.
Giles Orr via Talk wrote on 2025-09-04 06:15:
I've installed `batcat`, but I almost never use it. Largely because it's possible (although far more difficult, but I invested the time back when) to get `less` to syntax-highlight your code files.
I had no idea.
A little self-promotion, how to colourize less: https://www.gilesorr.com/blog/pygmentize-less-update.html
Thanks - I'd never heard of "pygmantize" and it sounds neat. I may have a use for it similar to yours: embedding code in a web page. In the past, I've used VS Code, copied the code from there, and when pasting it one can get either The Text or Syntax Highlighted Text, depending on the tool used to paste. Running it through `pygmantize` might work better.