Joined October 2013
·
Posted to
syntax highlighting in the terminal with pygments
over 1 year
ago
Why not adding -g
to allow auto detection of lexer ;-) ?
Achievements
68 Karma
0 Total ProTip Views
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Raven
Have at least one original repo where some form of shell script is the dominant language
Honey Badger 3
Have at least three Node.js specific repos
Forked
Have a project valued enough to be forked by someone else
Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
Charity
Fork and commit to someone's open source project in need
Honey Badger
Have at least one original Node.js-specific repo
@antonov, I tried:
alias jsonpp='cat $1 | python -mjson.tool | pygmentize -l'
but the python have problem getting the piped input.
So I used a function:
function jsonpp () { cat "$@" | python -mjson.tool | pygmentize -l json }