summaryrefslogtreecommitdiff
path: root/pygments/formatters/html.py
Commit message (Collapse)AuthorAgeFilesLines
* Backed out changeset: df3df829861dMatth?us G. Chajdas2019-05-211-7/+1
|
* Don't emit a trailing newline in nowrap mode (fixes #1514.)Matth?us G. Chajdas2019-05-181-1/+7
|
* Merged in SylvainCorlay/pygments-main/css-variables (pull request #814)Anteru2019-05-091-4/+29
|\ | | | | | | | | | | Allow for CSS variable in pygments stylesheets Approved-by: Anteru <bitbucket@ca.sh13.net>
| * Add license information to generated files (fixes #1496).Matth?us G. Chajdas2019-05-071-2/+11
| | | | | | | | Also update the license year to 2019.
| * Add option to wrap the code in both <code> and <pre> (fixes #438.)Matth?us G. Chajdas2019-05-061-2/+18
| | | | | | | | Adds a new option "wrapcode" which wraps the code using <code>.
* | Allow for CSS variable in pygments stylesheetsSylvain Corlay2019-05-021-3/+8
|/
* Fix ResourceWarning: unclosed fileMicka?l Schoentgen2019-01-071-4/+3
| | | | Also uniformize usage of the 'with' contact manager to prevent resource leaks.
* Copyright update.Georg Brandl2017-01-221-1/+1
|
* Fixed HTML formatter output with leading empty lines (closes #1111)Georg Brandl2016-02-021-1/+3
|
* mergeGeorg Brandl2016-01-041-0/+10
|\
| * Add filename parameter to HtmlFormatterAlexander Todorov2015-11-291-0/+10
| |
* | HTML formatter: pep8Georg Brandl2016-01-041-22/+22
|/
* Optimized HtmlFormatter to run ~10x faster for long linesGiedrius Dubinskas2015-10-161-11/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | Changed string concatenation to list extend/join to reduce memory allocations. How to reproduce: Test data: $ echo '{' $(for i in {1..10000}; do printf '"key%d":"value %d", ' $i $i; done) '}' > /tmp/one-line.json Before: $ time ./pygmentize -O encoding=utf-8 -O stripnl=False -f html -l 'json' > /dev/null < /tmp/one-line.json real 0m5.597s user 0m4.400s sys 0m1.158s After: $ time ./pygmentize -O encoding=utf-8 -O stripnl=False -f html -l 'json' > /dev/null < /tmp/one-line.json real 0m0.347s user 0m0.309s sys 0m0.029s
* Fix typoJonas Haag2015-09-031-1/+1
|
* Fixed style inheritance for non-standard token types in HTML output.Georg Brandl2015-03-081-1/+10
|
* merge with stableGeorg Brandl2015-01-211-11/+1
|\
| * More coverage of newer HTML formatter options.Georg Brandl2014-11-111-11/+1
| |
* | Copyright year update.Georg Brandl2015-01-211-1/+1
|/
* Move space after inline html linenos to be inside of the span containing the ↵Nick Currier2014-07-031-4/+4
| | | | linenos
* Fix some lines to be within 90 charactersGaurav Jain2014-05-121-1/+2
| | | | Some regular expressions has been simplified to use \w in order to reduce line length
* use versionadded directivesGeorg Brandl2014-01-191-17/+32
|
* Finalize single-source port for Py2.[67] and Py3.3+.Georg Brandl2014-01-181-5/+5
|
* manual prettifying and small fixes after futurize runGeorg Brandl2014-01-181-0/+1
|
* futurizing: move to print_function and "except X as Y" syntaxGeorg Brandl2014-01-181-3/+4
|
* new year in copyright noticeGeorg Brandl2014-01-101-1/+1
|
* HTML formatter: add / to path in ctags linking if nonempty; fix spelling.Georg Brandl2013-02-031-1/+3
|
* HTML linespans: add changelog and versionaddedGeorg Brandl2013-01-091-1/+3
|
* Merged in icholy/pygments-main (pull request #82: added `linespans` option ↵Georg Brandl2013-01-091-0/+18
|\ | | | | | | to HtmlFormatter to wrap lines in spans)
| * fixed typoIlia Choly2012-06-181-1/+1
| |
| * added `linespans` option to HtmlFormatter to wrap lines in spansIlia Choly2012-06-181-0/+18
| |
* | CTags feature:Georg Brandl2013-01-091-21/+24
| | | | | | | | | | | | | | | | | | * rename parameter "urlformat" to "tagurlformat" to make clear it belongs to the tags feature * change NameError to RuntimeError and tone down the message * document that python-ctags must be installed to use the tagsfile feature * move test tags file from examplefiles/, where it will be attempted as a test file * fix test to work if python-ctags is not installed * changelog/attribution
* | Merge pull request #87 (ctags link support for HTML formatter) from ↵Georg Brandl2013-01-091-2/+3
|\ \ | | | | | | | | | https://bitbucket.org/pepijndevos/pygments-main/overview
| * | Happy new year 2013.Georg Brandl2013-01-091-1/+1
| | |
| * | Fix issues found by "make check".Georg Brandl2013-01-091-1/+2
| |/
* | add suggested edits and testPepijn de Vos2012-09-241-4/+4
| |
* | fix for possible mutiline namesPepijn de Vos2012-07-161-1/+1
| |
* | update documentation to reflect urlformat changePepijn de Vos2012-07-161-11/+4
| |
* | format urlPepijn de Vos2012-07-161-16/+12
| |
* | documentation for ctagsPepijn de Vos2012-07-141-0/+20
| |
* | multifile supportPepijn de Vos2012-07-141-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | Example usage: #!/bin/bash for f in $@ do mkdir -p `dirname "output/$f.html"` ./pygmentize -f html -O anchorlinenos,linenos,full,tagurlprefix=`pwd`/,singlepage=False,lineanchors=L,tagsfile=tags -o "output/$f.html" "$f" done
* | single file ctagsPepijn de Vos2012-07-141-0/+25
|/
* Copyright update.Georg Brandl2012-02-051-1/+1
|
* Fix specifyng the starting line number in lineanchors mode. Add tests for ↵Ana Nelson2011-10-021-1/+1
| | | | line numbering.
* Fix current copyright year.Georg Brandl2011-07-091-1/+1
|
* Do not generate classprefix without an actual class name (#479).Georg Brandl2011-01-031-3/+5
|
* Performance improvements in the HTML formatter (#523).Georg Brandl2010-08-181-11/+12
|
* With the ``noclasses`` option in the HTML formatter, some styles present in ↵Georg Brandl2010-04-251-4/+28
| | | | the stylesheet were not added as inline styles.
* Remove compatibility "sets" imports.Georg Brandl2010-02-181-6/+3
|
* Happy new year!Georg Brandl2010-01-011-1/+1
|
* #427: Improve inline style handling in !HtmlFormatterthatch2009-09-181-4/+25
|