Re:fd, xargs, bat = quick document review
by genman on Sunday February 25, 2024 @10:20AM
(#39501440)
Can less provide syntax highlighting?
[ Parent
| on HN ]
Sort of. Setting the LESSOPEN environment variable will filter less input through that, which could do syntax highlighting (if you use less -r).
The default (/usr/bin/lesspipe.sh, shipped with less) isn't very clever. It can uncompress files in some common formats and open images, but isn't very smart and doesn't handle markdown or code of any kind as far as I can tell.
Re:fd, xargs, bat = quick document review
by katehikes88 on Sunday February 25, 2024 @10:35AM
(#39501591)
It can with lesspipe but don't you think that's a bit of an overkill for a simple markdown document?