pygments.formatters.rtf

A formatter that generates RTF files.

copyright:Copyright 2006-2013 by the Pygments team, see AUTHORS.
license:BSD, see LICENSE for details.
class pygments.formatters.rtf.RtfFormatter(**options)[source]

Format tokens as RTF markup. This formatter automatically outputs full RTF documents with color information and other useful stuff. Perfect for Copy and Paste into Microsoft® Word® documents.

New in Pygments 0.6.

Additional options accepted:

style
The style to use, can be a string or a Style subclass (default: 'default').
fontface
The used font famliy, for example Bitstream Vera Sans. Defaults to some generic font which is supposed to have fixed width.

Project Versions

This Page