summaryrefslogtreecommitdiff
path: root/sphinx/highlighting.py
Commit message (Collapse)AuthorAgeFilesLines
* Closes #810: fix deprecation warnings with Python 3. What is left over is ↵Georg Brandl2012-01-291-2/+2
| | | | from nose or docutils.
* Closes #695: When the highlight language "python" is specified explicitly, ↵Georg Brandl2012-01-291-2/+4
| | | | | | do not try to parse the code to recognize non-Python snippets. Thanks to Jonas Haag for the patch.
* More version-compatibility hack removals.Georg Brandl2011-09-251-7/+1
|
* Remove compatibility code for Pygments < 1.2.Georg Brandl2011-09-251-13/+10
|
* Add changelog entry for emphasize-lines and some coding style fixes.Georg Brandl2011-09-221-5/+4
|
* PygmentsBridge: pass keyword arguments to PygmentsMark Lodato2011-07-061-2/+2
| | | | | | In Pygments.highlight_block, pass all extra keyword arguments, including linenos, directly to the Pygments formatter. This allows custom directives to use other Pygments features.
* PygmentsBridge: construct new formatter each timeMark Lodato2011-07-061-13/+18
| | | | | | | | Previously, we pre-constructed two different formatters, one with line numbers and one without. This made the code rather confusing and also was not scalable for options that take arguments, such as 'hl_lines'. Now, we construct a new HTMLFormatter or LatexFormatter on each call to highlight_block().
* changeset: 3201:2a38261315baGeorg Brandl2011-01-091-3/+3
| | | | | | | | tag: tip parent: 3199:cd7b0a8d99c6 user: Zbigniew J?drzejewski-Szmek <zbyszek@in.waw.pl> date: Sun Jan 09 20:55:13 2011 +0100 summary: Trim <BLANKLINE> just like doctest flags.
* Add ``pyramid`` theme.Georg Brandl2011-01-041-21/+1
|
* merge with 1.0Georg Brandl2011-01-041-1/+1
|\
| * New year update.Georg Brandl2011-01-041-1/+1
| |
* | merge with 1.0Georg Brandl2010-10-221-1/+1
|\ \ | |/
| * #534: warning message instead of crash if invalid Pygments lexer name is used.Georg Brandl2010-10-221-1/+1
| |
* | merge with 1.0Georg Brandl2010-08-051-1/+1
|\ \ | |/
| * Fix unwanted styling of C domain references (because of a namespace clash ↵Georg Brandl2010-08-051-1/+1
| | | | | | | | with Pygments styles).
* | encode source code for parsing only on python 2.xDasIch2010-05-301-1/+1
| |
* | Check if a string is not unicode as a workaround for 3.xDasIch2010-05-301-1/+1
|/
* merge with 0.6Georg Brandl2010-04-061-3/+12
|\
| * Add warning facility on unknown Pygments lexer names.Georg Brandl2010-04-041-3/+12
| |
* | merge with 0.6Georg Brandl2010-01-061-1/+12
|\ \ | |/ |/|
| * merge with 0.6Georg Brandl2010-01-011-1/+12
| |\
| | * merge with 0.6Georg Brandl2009-11-091-1/+9
| | |\
| | * | #169: Added the ``trim_doctest_flags`` config value, which is true by default.Georg Brandl2009-06-161-1/+12
| | | |
* | | | Restore compatibility with Pygments >= 1.2.Georg Brandl2010-01-061-3/+6
|/ / /
* | | Happy new year!Georg Brandl2010-01-011-1/+1
| |/ |/|
* | #265: restore Jython compatibility.Georg Brandl2009-11-081-1/+9
|/
* When highlighting Python code, ignore extra indentation beforeGeorg Brandl2009-06-041-0/+5
| | | | trying to parse it as Python.
* Convert strings to unicode in highlighting.Georg Brandl2009-04-281-0/+2
|
* Reformat to EOL80.Georg Brandl2009-01-101-1/+2
|
* Split stylesheets into basic, default and sphinxdoc.Georg Brandl2009-01-101-1/+1
|
* Add Pygments style selection to theming.Georg Brandl2009-01-101-2/+7
|
* Merge in copyright style changes from 0.5.Georg Brandl2009-01-031-1/+1
|\
| * Switch copyright and license tags to single style. Add contributorGeorg Brandl2009-01-031-2/+2
| | | | | | | | | | names in AUTHORS instead, and add the license of etree13 to LICENSE.
* | Explicitly refer to the license in :license: tags.Georg Brandl2008-12-271-1/+1
| |
* | Fix NameError if Pygments is not installed.Georg Brandl2008-12-161-1/+2
| |
* | Allow using different Pygments formatters.Georg Brandl2008-11-301-10/+18
| |
* | Add Sphinx.add_lexer().Georg Brandl2008-11-301-0/+1
| |
* | Changed an `__import__` call in the highlighter module because that trigger ↵mitsuhiko2008-11-301-1/+1
|/ | | | a bug in the python importer.
* Allow lexer guessing.georg.brandl2008-09-161-1/+6
|
* Restructure LaTeX file template: add new "latex_elements" config valuegeorg.brandl2008-09-121-8/+14
| | | | allowing to customize each part of what is written to the tex file.
* Use a prefix to \at, \lb and \rb since they are probably often used command ↵georg.brandl2008-09-111-6/+6
| | | | names.
* Add default highlight language selection support.georg.brandl2008-09-091-28/+42
| | | | Add support for recognizing Python 3 console output.
* Merged revisions 65566-65567,65623,65625 via svnmerge fromgeorg.brandl2008-08-101-19/+24
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/doctools/branches/0.4.x ........ r65566 | georg.brandl | 2008-08-07 09:11:11 +0000 (Thu, 07 Aug 2008) | 2 lines Clarification for the ref role. ........ r65567 | georg.brandl | 2008-08-07 09:11:25 +0000 (Thu, 07 Aug 2008) | 2 lines Rebuild everything if extensions change. ........ r65623 | georg.brandl | 2008-08-10 11:18:42 +0000 (Sun, 10 Aug 2008) | 2 lines Unify handling of LaTeX escaping, and add some more replacements. ........ r65625 | georg.brandl | 2008-08-10 11:25:41 +0000 (Sun, 10 Aug 2008) | 2 lines Make tex escapes a module. ........
* Merged revisions ↵georg.brandl2008-08-041-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 65283,65303,65316-65317,65372-65375,65377,65380,65483-65485,65494 via svnmerge from svn+ssh://pythondev@svn.python.org/doctools/branches/0.4.x ........ r65283 | georg.brandl | 2008-07-29 10:07:26 +0000 (Tue, 29 Jul 2008) | 2 lines Update ez_setup.py. ........ r65303 | benjamin.peterson | 2008-07-30 12:35:34 +0000 (Wed, 30 Jul 2008) | 1 line add a with_testapp decorator for test functions that passes the TestApp instance in a cleans up after it ........ r65316 | benjamin.peterson | 2008-07-30 23:12:07 +0000 (Wed, 30 Jul 2008) | 1 line make the app for test_markup global to the module ........ r65317 | benjamin.peterson | 2008-07-30 23:31:29 +0000 (Wed, 30 Jul 2008) | 1 line make TestApp.cleanup more aggressive ........ r65372 | georg.brandl | 2008-08-01 19:11:22 +0000 (Fri, 01 Aug 2008) | 2 lines Add more tests, fix a few bugs in image handling. ........ r65373 | georg.brandl | 2008-08-01 19:28:33 +0000 (Fri, 01 Aug 2008) | 2 lines Fix oversight. ........ r65374 | benjamin.peterson | 2008-08-01 19:36:32 +0000 (Fri, 01 Aug 2008) | 1 line fix one broken test ........ r65375 | georg.brandl | 2008-08-01 19:41:11 +0000 (Fri, 01 Aug 2008) | 2 lines Fix the handling of non-ASCII input in quickstart. ........ r65377 | georg.brandl | 2008-08-01 19:48:24 +0000 (Fri, 01 Aug 2008) | 2 lines Allow REs in markup checks. ........ r65380 | georg.brandl | 2008-08-01 20:31:18 +0000 (Fri, 01 Aug 2008) | 2 lines Don't rely on mtimes being different for changed files. ........ r65483 | georg.brandl | 2008-08-04 09:01:40 +0000 (Mon, 04 Aug 2008) | 4 lines Add an "encoding" option to literalinclude. Add tests for include directives. ........ r65484 | georg.brandl | 2008-08-04 09:11:17 +0000 (Mon, 04 Aug 2008) | 2 lines Add changelog entry. ........ r65485 | georg.brandl | 2008-08-04 09:21:58 +0000 (Mon, 04 Aug 2008) | 2 lines Fix markup. ........ r65494 | georg.brandl | 2008-08-04 16:34:59 +0000 (Mon, 04 Aug 2008) | 2 lines Correctly use HTML file suffix in templates. ........
* Add a commandprefix to the latex formatter to overridegeorg.brandl2008-06-121-2/+3
| | | | Pygments 0.9's awkward 'C' default.
* pygments_style can be an import path nowarmin.ronacher2008-04-281-3/+4
|
* pygments_style can be a style class nowarmin.ronacher2008-04-281-1/+3
|
* Add missing commands if Pygments is not installed.georg.brandl2008-03-231-1/+12
| | | | Bug reported by Ondrej Certik.
* Fix a few overlong lines, and use \t instead of literal tabs.georg.brandl2008-03-211-2/+3
|
* Ignore MemoryError while parsing Python source with Python 2.4georg.brandl2008-03-191-1/+8
| | | | (it's raised for invalid coding cookies).