summaryrefslogtreecommitdiff
path: root/pygments/formatters
Commit message (Collapse)AuthorAgeFilesLines
* Allow for CSS variable in pygments stylesheetsSylvain Corlay2019-05-021-3/+8
|
* Fix ResourceWarning: unclosed fileMicka?l Schoentgen2019-01-072-5/+5
| | | | Also uniformize usage of the 'with' contact manager to prevent resource leaks.
* Merge fix for recently introduced failures.Matth?us G. Chajdas2018-12-192-5/+5
|\
| * Fix a few markup problems in the docs.Georg Brandl2018-12-181-2/+2
| |
| * Update ansi color name change version.Matth?us G. Chajdas2018-12-161-2/+2
| |
| * Merged in mortenlund/pygments-main (pull request #777)Anteru2018-12-161-3/+9
| |\ | | | | | | | | | | | | | | | | | | | | | Change ansi color names to more saying names Approved-by: Morten E. Lund <melund@gmail.com> Approved-by: jonathanslenders <jonathan@slenders.be> Approved-by: Anteru <bitbucket@ca.sh13.net>
| * | Fix more instances of invalid string escapesGeorg Brandl2018-11-281-1/+1
| | | | | | | | | | | | Also, raise on warnings from Pygments only.
* | | Update remaining color namesMorten Enemark Lund2018-12-182-62/+62
| |/ |/|
* | Use replace instead of stripMorten Enemark Lund2018-08-211-2/+2
| |
* | Ensure terminal formatter works with new ansi colors namesMorten Enemark Lund2018-08-211-2/+2
| |
* | Change ansi color names to more saying namesMorten Enemark Lund2018-08-041-1/+7
|/ | | | | | The ansi color names are changed to names which are easier to understand and align with color names of other projects and terminals. (e.g. ``#ansifuchsia`` to ``ansibrightmagenta``) This also drops the # prefix to the color names. Hashtag # is usually used for hex colors and the names are already prefixed with `ansi`. Furthermore, it allows the new and old set of names to be exclusive.
* -x functionality updates, Python 3 compatibility fixGeorg Brandl2017-01-221-4/+6
|
* Merged in tprynn/pygments-main/command-line-lexer-formatter (pull request #559)Georg Brandl2017-01-2212-12/+49
|\ | | | | | | Custom Lexer/Formatter File Loading
| * style fixupsGeorg Brandl2017-01-221-6/+6
| |
| * Merged in AndreBremer/pygments-main (pull request #597)Georg Brandl2017-01-2212-12/+12
| |\ | | | | | | | | | Image Formatter: Mac-specific lookup for fonts (fixes #868)
| | * Copyright update.Georg Brandl2017-01-2212-12/+12
| | |
| * | Python 2.6 compatibility fixes and optimization.abremer2016-05-271-2/+2
| | |
| * | Added Mac-specific lookup for fonts (fixes #868).abremer2016-05-271-0/+37
| |/
* | Add load_from_file functions to __all__ in lexers and formattersTanner Prynn2016-02-291-1/+1
| |
* | bring this branch up-to-date with master, and resolve merge conflicts in ↵Tanner Prynn2016-02-261-0/+33
|\ \ | |/ |/| | | lexerdev documentation
| * Use exec instead of imp.load_sourceTanner Prynn2016-02-261-9/+7
| | | | | | | | Custom lexer/formatter are no longer added to sys.modules()
| * Update pull request per comments by birkenfeld.Tanner Prynn2016-02-241-10/+24
| | | | | | | | | | | | | | Add optional function parameter for the class name to instantiate, and update cli to support this. Move error handling to within the loading functions; they now only raise ClassNotFound. Modify doc with these updates and the version number. Test case clean up and additions.
| * Add additional command line option to prevent users from using eval() on ↵Tanner Prynn2016-02-221-0/+21
| | | | | | | | | | | | | | | | untrusted files Finish custom-formatter loading and fill in some docstrings Add load_?_from_file functions to API documentation pep8 compliance
* | merge with stableGeorg Brandl2016-02-261-4/+32
|\ \
| * | Rename ansilist that now is a set, slipped though PR 531 reviewMatthias Bussonnier2016-02-141-4/+4
| | |
| * | Add authors entry, changelog for PR#531 and fixup a few style issues.Georg Brandl2016-02-141-11/+9
| | |
| * | Merged in Carreau/pygments-main/256ansi (pull request #531)Georg Brandl2016-02-141-4/+34
| |\ \ | | |/ | |/| | | | Allow ansi escape sequence as color format
| | * Update to leave compatibility for other formatters.Matthias Bussonnier2016-02-122-23/+20
| | |
| | * Handle some `#ansi*` in HtmlFormatterMatthias Bussonnier2016-02-081-2/+19
| | |
| | * Add documentation on non-extended foreground color for Terminal256 stylesMatthias Bussonnier2016-02-071-0/+7
| | |
| | * merge with originMatthias Bussonnier2015-12-181-1/+10
| | |\
| | | * Allow ansi escape sequence as color formatMatthias Bussonnier2015-11-041-1/+10
| | | |
* | | | Fixed Python 3 regression in image formatter (closes #1215)Georg Brandl2016-02-261-1/+1
|/ / /
* | | Added a mapping table for LaTeX encodings and added utf8 (closes #1152)Georg Brandl2016-02-021-1/+8
| | |
* | | Fixed HTML formatter output with leading empty lines (closes #1111)Georg Brandl2016-02-021-1/+3
| | |
* | | Make "make mapfiles" Python3 compatible.Georg Brandl2016-02-021-1/+1
| | |
* | | Fixed image formatter font searching on Macs (closes #1188)Georg Brandl2016-02-021-3/+7
| | |
* | | "make check" style fixes.Georg Brandl2016-01-161-1/+1
| | |
* | | Fix byte decoding in py3 for ImageFormatterRishav Kundu2016-01-071-1/+1
| | | | | | | | | | | | subprocess.communicate returns a bytes object
* | | mergeGeorg Brandl2016-01-041-0/+10
|\ \ \
| * | | Add filename parameter to HtmlFormatterAlexander Todorov2015-11-291-0/+10
| |/ /
* | | HTML formatter: pep8Georg Brandl2016-01-041-22/+22
|/ /
* | move `.replace` immediately after `read()`, andhhsprings2015-11-091-2/+9
| | | | | | | | explain in a comment that it's for windows.
* | _mapping.py should keep NL not CRNL.hhsprings2015-11-071-3/+3
|/
* Closes #1160: fix docstring markup.Georg Brandl2015-10-201-1/+1
|
* Closes #1142: add 16-million color terminal formatter.Georg Brandl2015-10-172-4/+63
|
* 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
* Avoid the shell entirely when finding fonts.Tim Hatch2015-10-161-10/+8
| | | | Manually tested on OS X.
* Merged in Javantea/pygments-main (pull request #501)Tim Hatch2015-10-164-44/+212
|\ | | | | | | Fix Shell Injection in FontManager._get_nix_font_path
| * Merge with jjatria/pygments-main (praat) (pull request #492)Tim Hatch2015-10-144-44/+212
| |\