summaryrefslogtreecommitdiff
path: root/pygments/cmdline.py
Commit message (Collapse)AuthorAgeFilesLines
* -x functionality updates, Python 3 compatibility fixGeorg Brandl2017-01-221-1/+1
|
* Merged in tprynn/pygments-main/command-line-lexer-formatter (pull request #559)Georg Brandl2017-01-221-2/+2
|\ | | | | | | Custom Lexer/Formatter File Loading
| * Copyright update.Georg Brandl2017-01-221-2/+2
| |
* | Update pull request per comments by birkenfeld.Tanner Prynn2016-02-241-32/+27
| | | | | | | | | | | | | | 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-9/+25
| | | | | | | | | | | | | | | | untrusted files Finish custom-formatter loading and fill in some docstrings Add load_?_from_file functions to API documentation pep8 compliance
* | add basic CLI support for custom lexers/formattersTanner Prynn2016-02-221-11/+39
|/
* Fixes noted by pylint, mostly.Tim Hatch2015-10-141-5/+6
|
* merge with stableGeorg Brandl2015-01-211-36/+48
|\
| * cmdline: more coverageGeorg Brandl2014-11-111-7/+2
| |
| * Fix -H return codes and test them.Georg Brandl2014-11-111-2/+3
| |
| * (Hopefully) fix test_cmdline failures under Windows without colorama.Georg Brandl2014-11-111-2/+2
| |
| * Reorder logic in cmdline.main a bit.Georg Brandl2014-11-111-12/+14
| |
| * Bring pygments.cmdline coverage to ~100%, fix a few glitches in the process.Georg Brandl2014-11-111-14/+11
| |
| * merge with stableGeorg Brandl2014-11-101-2/+19
| |\
| | * Add a -v command line switch that shows the full traceback.Georg Brandl2014-11-101-2/+19
| | |
* | | Copyright year update.Georg Brandl2015-01-211-2/+2
| | |
* | | (Hopefully) fix test_cmdline failures under Windows without colorama.Georg Brandl2014-11-111-2/+2
|/ /
* | Wrap the whole inner body of main() in the try-except.Georg Brandl2014-11-101-40/+41
|/
* Fix leftover debugging "raise". Add test coverage for errors and exceptions ↵Georg Brandl2014-11-101-8/+14
| | | | in cmdline_main.
* Closes #1058: Fix an encoding issue when using ``pygmentize`` with the ↵Georg Brandl2014-11-101-56/+57
| | | | ``-o`` option.
* Appease pyflakes.Georg Brandl2014-11-061-0/+2
|
* cmdline: wrap outfile directly with colorama only if output to terminalGeorg Brandl2014-10-141-17/+25
| | | | Add special handling for Python 3.
* Refine streaming mode a bit:Georg Brandl2014-10-081-6/+22
| | | | | | | | * flush output file after writing a line (important in Py3) * disallow -s and input file name * disallow -s without -l * use binary stdin on Py3 * add to usage doc.
* Merged in __russ__/pygments-main (pull request #165)Georg Brandl2014-10-081-102/+119
|\
| * Overhaul encoding handling in cmdline even more.Georg Brandl2014-10-081-38/+28
| | | | | | | | | | | | | | Now the encoding guessed for the input file will be used for an output file. We now always read and write to the terminal .buffer on Python 3, which allows us to override the terminal encoding and use our guessing algorithm.
| * Fix calling "pygmentize" without any args.Georg Brandl2014-10-081-4/+0
| |
| * Closes #799: read from binary buffer stdin on Python 3 if explicit encoding ↵Georg Brandl2014-10-081-4/+12
| | | | | | | | given
| * Closes #963: always guess lexer when reading from stdin.Georg Brandl2014-10-071-11/+5
| |
| * Closes #979: improve encoding behavior of cmdline invocationsGeorg Brandl2014-10-071-11/+26
| | | | | | | | | | | | | | | | Now the preferred locale encoding is used for stdin/stdout if the encoding is not set on the file objects. Also, code from input files is tried to be decoded as UTF-8, the locale encoding and finally latin-1 as a last resort if no encoding option is given.
| * Closes #980: fix DeprecationWarnings (mostly due to files closed by __del__) ↵Georg Brandl2014-10-071-1/+2
| | | | | | | | | | | | on Py3. Also fix a bunch of other uses of open() to use the with statement.
| * fix spelling in new class nameGeorg Brandl2014-04-141-2/+2
| |
| * Merge remote-tracking branch 'pr230/master'Tim Hatch2014-04-141-0/+10
| |\ | | | | | | | | | | | | Conflicts: pygments/formatters/latex.py
| | * Update the patch from #493 to work with tip.Jonathan Protzenko2013-08-211-0/+10
| | |
| * | manual prettifying and small fixes after futurize runGeorg Brandl2014-01-181-2/+4
| | |
| * | futurizing: move to print_function and "except X as Y" syntaxGeorg Brandl2014-01-181-66/+67
| | |
| * | new year in copyright noticeGeorg Brandl2014-01-101-2/+2
| | |
| * | Fix options with "=" in them.Jonathan Protzenko2013-09-041-1/+1
| |/
* | removed pointless code and trimmed the -s help docsruss2013-02-131-9/+4
| |
* | added -s option to support line-by-line formatting of stdin streamruss2013-02-131-3/+32
|/
* Closes #838: fix lexers not receiving command-line options when guessing by ↵Georg Brandl2013-01-181-4/+4
| | | | content.
* Happy new year 2013.Georg Brandl2013-01-091-2/+2
|
* More fixed for PEP-8 formatting.Grigory Petrov2012-12-251-6/+6
|
* Modified by Tim Hatch request.Grigory Petrov2012-12-241-1/+1
|
* Fixed code style to be PEP-8 compatible.Grigory Petrov2012-12-231-1/+1
|
* pygmentize on Windows now uses color output if 'colorama' python package is ↵Grigory Petrov2012-12-231-0/+8
| | | | available.
* Happy new year.Georg Brandl2012-08-191-1/+1
|
* Closes #691: Fix Python 3 terminal highlighting with pygmentize.Georg Brandl2012-02-061-0/+3
|
* Copyright update.Georg Brandl2012-02-051-1/+1
|
* Update copyright years.Georg Brandl2011-09-101-1/+1
|
* Fix current copyright year.Georg Brandl2011-07-091-1/+1
|