commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
You can specify various output formats, theme styles, etc.
python -m pygments -o source.png source.py
python -m pygments -o source.rtf source.py
Check available output formats, styles, etc.:
python -m pygments -L
Find pygments module here: http://pygments.org/
There is 1 alternative - vote for the best!
On Debian/Ubuntu the pygments script is called pygmentize and can be found in the python-pygments package.
For an overview of all available lexers, formatters, styles and filters use
Here is an example using more options
pygmentize -f 256 -l sh -F whitespace:spaces=True,tabs=True -O style=borland ~/.bashrc | less -R
If you can do better, submit your command here.
You must be signed in to comment.