This file is incomplete and needs to be updated.

1. Linux

1.1. Installation

Enter the following commands at a Command Line.

which pygmentize
dpkg -L python-pygments
vdir /usr/lib/python2.7/dist-packages/pygments/lexers
vi /usr/lib/python2.7/dist-packages/pygments/lexers/shell.py

Need pygmentize >= v2.2 in order to use the -x flag.

1.2. Update pygmentize from v2.0 to v2.2

Enter the following commands at a Command Line.

sudo apt-get install python-pip
sudo apt-get remove python-pygments
sudo apt-get install python-pygments

Log off

pygmentize -l your_lexer_file.py -x
pygmentize -l your_lexer_file.py -x <file>