lless
is the colorizing of less
. It works similar to less
but displays content with syntax highlighting.
- JavaScript
- Java
- Ruby
- Python
- Go
- C
- JSON
$ brew install lless
lless
can be easily installed as an executable.
Download the latest compiled binaries and put it in your executable path.
Prerequisites:
$ go get -u github.com/jingweno/lless
$ lless FILE
$ lless --bg=dark FILE ... # dark background
$ lless # read from standard input
$ curl https://raw.githubusercontent.com/jingweno/lless/master/main.go | lless
It's recommended to alias lless
to less
:
alias less=lless
You can always invoke less
after aliasing lless
by typing \less
(in Bash).
This project was based off jingweno's ccat
Thanks to Sourcegraph who built this awesome syntax-highlighting package.