Author: | a Pygments author|contributor; Felix Wiemann; Guenter Milde |
---|---|
Date: | 2007-06-08 |
Copyright: | This module has been placed in the public domain. |
This is a merge of Using Pygments in ReST documents from the pygments documentation, and a proof of concept by Felix Wiemann.
2007-06-01 | Removed redundancy from class values. |
2007-06-04 | Merge of successive tokens of same type (code taken from pygments.formatters.others). |
2007-06-05 | Separate docutils formatter script Use pygments' CSS class names (like the html formatter) allowing the use of pygments-produced style sheets. |
2007-06-07 | Merge in the formatting of the parsed tokens (misnamed as docutils_formatter) as class DocutilsInterface |
2007-06-08 | Failsave implementation (fallback to a standard literal block if pygments not found) |
Do not insert inline nodes for the following tokens. (You could add e.g. Token.Punctuation like ['', 'p'].)
This interface class combines code from pygments.formatters.html and pygments.formatters.others.
It does not require anything of docutils and could also become a part of pygments
If called from the command line, call the docutils publisher to render the input