Pygments

generic syntax highlighter


root/CHANGES @ 710:a5748745272a

Revision 710:a5748745272a, 11.3 kB (checked in by gbrandl, 22 months ago)

Final 1.0 commit.

Line 
1Pygments changelog
2==================
3
4Version 1.0
5-----------
6(codename Dreiundzwanzig, released Nov 23, 2008)
7
8- Don't use join(splitlines()) when converting newlines to ``\n``,
9  because that doesn't keep all newlines at the end when the
10  ``stripnl`` lexer option is False.
11
12- Add ``-N`` option to command-line interface to get a lexer name
13  for a given filename.
14
15- Add Tango style, written by Andre Roberge for the Crunchy project.
16
17- Add Python3TracebackLexer and ``python3`` option to
18  PythonConsoleLexer.
19
20- Fix a few bugs in the Haskell lexer.
21
22- Fix PythonTracebackLexer to be able to recognize SyntaxError and
23  KeyboardInterrupt (#360).
24
25- Provide one formatter class per image format, so that surprises like::
26
27    pygmentize -f gif -o foo.gif foo.py
28
29  creating a PNG file are avoided.
30
31- Actually use the `font_size` option of the image formatter.
32
33- Fixed numpy lexer that it doesn't listen for `*.py` any longer.
34
35- Fixed HTML formatter so that text options can be Unicode
36  strings (#371).
37
38- Unified Diff lexer supports the "udiff" alias now.
39
40- Fix a few issues in Scala lexer (#367).
41
42- RubyConsoleLexer now supports simple prompt mode (#363).
43
44- JavascriptLexer is smarter about what constitutes a regex (#356).
45
46- Add Applescript lexer, thanks to Andreas Amann (#330).
47
48- Make the codetags more strict about matching words (#368).
49
50- NginxConfLexer is a little more accurate on mimetypes and
51  variables (#370).
52
53
54Version 0.11.1
55--------------
56(released Aug 24, 2008)
57
58- Fix a Jython compatibility issue in pygments.unistring (#358).
59
60
61Version 0.11
62------------
63(codename Straußenei, released Aug 23, 2008)
64
65Many thanks go to Tim Hatch for writing or integrating most of the bug
66fixes and new features.
67
68- Lexers added:
69
70  * Nasm-style assembly language, thanks to delroth
71  * YAML, thanks to Kirill Simonov
72  * ActionScript 3, thanks to Pierre Bourdon
73  * Cheetah/Spitfire templates, thanks to Matt Good
74  * Lighttpd config files
75  * Nginx config files
76  * Gnuplot plotting scripts
77  * Clojure
78  * POV-Ray scene files
79  * Sqlite3 interactive console sessions
80  * Scala source files, thanks to Krzysiek Goj
81
82- Lexers improved:
83
84  * C lexer highlights standard library functions now and supports C99
85    types.
86  * Bash lexer now correctly highlights heredocs without preceding
87    whitespace.
88  * Vim lexer now highlights hex colors properly and knows a couple
89    more keywords.
90  * Irc logs lexer now handles xchat's default time format (#340) and
91    correctly highlights lines ending in ``>``.
92  * Support more delimiters for perl regular expressions (#258).
93  * ObjectiveC lexer now supports 2.0 features.
94
95- Added "Visual Studio" style.
96
97- Updated markdown processor to Markdown 1.7.
98
99- Support roman/sans/mono style defs and use them in the LaTeX
100  formatter.
101
102- The RawTokenFormatter is no longer registered to ``*.raw`` and it's
103  documented that tokenization with this lexer may raise exceptions.
104
105- New option ``hl_lines`` to HTML formatter, to highlight certain
106  lines.
107
108- New option ``prestyles`` to HTML formatter.
109
110- New option *-g* to pygmentize, to allow lexer guessing based on
111  filetext (can be slowish, so file extensions are still checked
112  first).
113
114- ``guess_lexer()`` now makes its decision much faster due to a cache
115  of whether data is xml-like (a check which is used in several
116  versions of ``analyse_text()``.  Several lexers also have more
117  accurate ``analyse_text()`` now.
118
119
120Version 0.10
121------------
122(codename Malzeug, released May 06, 2008)
123
124- Lexers added:
125
126  * Io
127  * Smalltalk
128  * Darcs patches
129  * Tcl
130  * Matlab
131  * Matlab sessions
132  * FORTRAN
133  * XSLT
134  * tcsh
135  * NumPy
136  * Python 3
137  * S, S-plus, R statistics languages
138  * Logtalk
139
140- In the LatexFormatter, the *commandprefix* option is now by default
141  'PY' instead of 'C', since the latter resulted in several collisions
142  with other packages.  Also, the special meaning of the *arg*
143  argument to ``get_style_defs()`` was removed.
144
145- Added ImageFormatter, to format code as PNG, JPG, GIF or BMP.
146  (Needs the Python Imaging Library.)
147
148- Support doc comments in the PHP lexer.
149
150- Handle format specifications in the Perl lexer.
151
152- Fix comment handling in the Batch lexer.
153
154- Add more file name extensions for the C++, INI and XML lexers.
155
156- Fixes in the IRC and MuPad lexers.
157
158- Fix function and interface name highlighting in the Java lexer.
159
160- Fix at-rule handling in the CSS lexer.
161
162- Handle KeyboardInterrupts gracefully in pygmentize.
163
164- Added BlackWhiteStyle.
165
166- Bash lexer now correctly highlights math, does not require
167  whitespace after semicolons, and correctly highlights boolean
168  operators.
169
170- Makefile lexer is now capable of handling BSD and GNU make syntax.
171
172
173Version 0.9
174-----------
175(codename Herbstzeitlose, released Oct 14, 2007)
176
177- Lexers added:
178
179  * Erlang
180  * ActionScript
181  * Literate Haskell
182  * Common Lisp
183  * Various assembly languages
184  * Gettext catalogs
185  * Squid configuration
186  * Debian control files
187  * MySQL-style SQL
188  * MOOCode
189
190- Lexers improved:
191
192  * Greatly improved the Haskell and OCaml lexers.
193  * Improved the Bash lexer's handling of nested constructs.
194  * The C# and Java lexers exhibited abysmal performance with some
195    input code; this should now be fixed.
196  * The IRC logs lexer is now able to colorize weechat logs too.
197  * The Lua lexer now recognizes multi-line comments.
198  * Fixed bugs in the D and MiniD lexer.
199
200- The encoding handling of the command line mode (pygmentize) was
201  enhanced. You shouldn't get UnicodeErrors from it anymore if you
202  don't give an encoding option.
203
204- Added a ``-P`` option to the command line mode which can be used to
205  give options whose values contain commas or equals signs.
206
207- Added 256-color terminal formatter.
208
209- Added an experimental SVG formatter.
210
211- Added the ``lineanchors`` option to the HTML formatter, thanks to
212  Ian Charnas for the idea.
213
214- Gave the line numbers table a CSS class in the HTML formatter.
215
216- Added a Vim 7-like style.
217
218
219Version 0.8.1
220-------------
221(released Jun 27, 2007)
222
223- Fixed POD highlighting in the Ruby lexer.
224
225- Fixed Unicode class and namespace name highlighting in the C# lexer.
226
227- Fixed Unicode string prefix highlighting in the Python lexer.
228
229- Fixed a bug in the D and MiniD lexers.
230
231- Fixed the included MoinMoin parser.
232
233
234Version 0.8
235-----------
236(codename Maikäfer, released May 30, 2007)
237
238- Lexers added:
239
240  * Haskell, thanks to Adam Blinkinsop
241  * Redcode, thanks to Adam Blinkinsop
242  * D, thanks to Kirk McDonald
243  * MuPad, thanks to Christopher Creutzig
244  * MiniD, thanks to Jarrett Billingsley
245  * Vim Script, by Tim Hatch
246
247- The HTML formatter now has a second line-numbers mode in which it
248  will just integrate the numbers in the same ``<pre>`` tag as the
249  code.
250
251- The `CSharpLexer` now is Unicode-aware, which means that it has an
252  option that can be set so that it correctly lexes Unicode
253  identifiers allowed by the C# specs.
254
255- Added a `RaiseOnErrorTokenFilter` that raises an exception when the
256  lexer generates an error token, and a `VisibleWhitespaceFilter` that
257  converts whitespace (spaces, tabs, newlines) into visible
258  characters.
259
260- Fixed the `do_insertions()` helper function to yield correct
261  indices.
262
263- The ReST lexer now automatically highlights source code blocks in
264  ".. sourcecode:: language" and ".. code:: language" directive
265  blocks.
266
267- Improved the default style (thanks to Tiberius Teng). The old
268  default is still available as the "emacs" style (which was an alias
269  before).
270
271- The `get_style_defs` method of HTML formatters now uses the
272  `cssclass` option as the default selector if it was given.
273
274- Improved the ReST and Bash lexers a bit.
275
276- Fixed a few bugs in the Makefile and Bash lexers, thanks to Tim
277  Hatch.
278
279- Fixed a bug in the command line code that disallowed ``-O`` options
280  when using the ``-S`` option.
281
282- Fixed a bug in the `RawTokenFormatter`.
283
284
285Version 0.7.1
286-------------
287(released Feb 15, 2007)
288
289- Fixed little highlighting bugs in the Python, Java, Scheme and
290  Apache Config lexers.
291
292- Updated the included manpage.
293
294- Included a built version of the documentation in the source tarball.
295
296
297Version 0.7
298-----------
299(codename Faschingskrapfn, released Feb 14, 2007)
300
301- Added a MoinMoin parser that uses Pygments. With it, you get
302  Pygments highlighting in Moin Wiki pages.
303
304- Changed the exception raised if no suitable lexer, formatter etc. is
305  found in one of the `get_*_by_*` functions to a custom exception,
306  `pygments.util.ClassNotFound`. It is, however, a subclass of
307  `ValueError` in order to retain backwards compatibility.
308
309- Added a `-H` command line option which can be used to get the
310  docstring of a lexer, formatter or filter.
311
312- Made the handling of lexers and formatters more consistent. The
313  aliases and filename patterns of formatters are now attributes on
314  them.
315
316- Added an OCaml lexer, thanks to Adam Blinkinsop.
317
318- Made the HTML formatter more flexible, and easily subclassable in
319  order to make it easy to implement custom wrappers, e.g. alternate
320  line number markup. See the documentation.
321
322- Added an `outencoding` option to all formatters, making it possible
323  to override the `encoding` (which is used by lexers and formatters)
324  when using the command line interface. Also, if using the terminal
325  formatter and the output file is a terminal and has an encoding
326  attribute, use it if no encoding is given.
327
328- Made it possible to just drop style modules into the `styles`
329  subpackage of the Pygments installation.
330
331- Added a "state" keyword argument to the `using` helper.
332
333- Added a `commandprefix` option to the `LatexFormatter` which allows
334  to control how the command names are constructed.
335
336- Added quite a few new lexers, thanks to Tim Hatch:
337
338  * Java Server Pages
339  * Windows batch files
340  * Trac Wiki markup
341  * Python tracebacks
342  * ReStructuredText
343  * Dylan
344  * and the Befunge esoteric programming language (yay!)
345
346- Added Mako lexers by Ben Bangert.
347
348- Added "fruity" style, another dark background originally vim-based
349  theme.
350
351- Added sources.list lexer by Dennis Kaarsemaker.
352
353- Added token stream filters, and a pygmentize option to use them.
354
355- Changed behavior of `in` Operator for tokens.
356
357- Added mimetypes for all lexers.
358
359- Fixed some problems lexing Python strings.
360
361- Fixed tickets: #167, #178, #179, #180, #185, #201.
362
363
364Version 0.6
365-----------
366(codename Zimtstern, released Dec 20, 2006)
367
368- Added option for the HTML formatter to write the CSS to an external
369  file in "full document" mode.
370
371- Added RTF formatter.
372
373- Added Bash and Apache configuration lexers (thanks to Tim Hatch).
374
375- Improved guessing methods for various lexers.
376
377- Added `@media` support to CSS lexer (thanks to Tim Hatch).
378
379- Added a Groff lexer (thanks to Tim Hatch).
380
381- License change to BSD.
382
383- Added lexers for the Myghty template language.
384
385- Added a Scheme lexer (thanks to Marek Kubica).
386
387- Added some functions to iterate over existing lexers, formatters and
388  lexers.
389
390- The HtmlFormatter's `get_style_defs()` can now take a list as an
391  argument to generate CSS with multiple prefixes.
392
393- Support for guessing input encoding added.
394
395- Encoding support added: all processing is now done with Unicode
396  strings, input and output are converted from and optionally to byte
397  strings (see the ``encoding`` option of lexers and formatters).
398
399- Some improvements in the C(++) lexers handling comments and line
400  continuations.
401
402
403Version 0.5.1
404-------------
405(released Oct 30, 2006)
406
407- Fixed traceback in ``pygmentize -L`` (thanks to Piotr Ozarowski).
408
409
410Version 0.5
411-----------
412(codename PyKleur, released Oct 30, 2006)
413
414- Initial public release.
Note: See TracBrowser for help on using the browser.