Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on PJSON: pretty, colorful json output formatting for terminal. Parent comment
alias pjson='pygmentize -l json'
If you're passing it the file name, pygmentize will figure out the lexer to use, e.g.
pygmentize foo.json
pygmentize bar.rb
It's only when you have it read from stdin that you need to specify, e.g.
pygmentize -l json < foo.json
There are no comments on this comment yet.
alias pjson='pygmentize -l json'
If you're passing it the file name, pygmentize will figure out the lexer to use, e.g.
pygmentize foo.json
pygmentize bar.rb
It's only when you have it read from stdin that you need to specify, e.g.
pygmentize -l json < foo.json