Format tokens as a raw representation for storing token streams.

The format is “tokentype<TAB>repr(tokenstring)\n“. The output can later be converted to a token stream with the `RawTokenLexer`, described in the `lexer list <lexers.txt>`_.

Only two options are accepted:


If set to ``'gz'`` or ``'bz2'``, compress the output with the given
compression algorithm after encoding (default: ``''``).


If set to a color name, highlight error tokens using that color.  If
set but with no value, defaults to ``'red'``.
*New in Pygments 0.11.*

name is referenced in 0 repositories