213
213
<h2>Contents</h2>
214
214
<ul class="contents">
216
<li><a href="#version-1-2-2">Version 1.2.2</a></li>
218
<li><a href="#version-1-2-1">Version 1.2.1</a></li>
220
<li><a href="#version-1-2">Version 1.2</a></li>
216
222
<li><a href="#version-1-1-1">Version 1.1.1</a></li>
218
224
<li><a href="#version-1-1">Version 1.1</a></li>
247
253
<p>Issue numbers refer to the tracker at <a class="reference external" href="http://dev.pocoo.org/projects/pygments/">http://dev.pocoo.org/projects/pygments/</a>.</p>
254
<div class="section" id="version-1-2-2">
255
<h3>Version 1.2.2</h3>
256
<p>(bugfix release, released Jan 02, 2010)</p>
258
<li>Removed a backwards incompatibility in the LaTeX formatter that caused
259
Sphinx to produce invalid commands when writing LaTeX output (#463).</li>
260
<li>Fixed a forever-backtracking regex in the BashLexer (#462).</li>
263
<div class="section" id="version-1-2-1">
264
<h3>Version 1.2.1</h3>
265
<p>(bugfix release, released Jan 02, 2010)</p>
267
<li>Fixed mishandling of an ellipsis in place of the frames in a Python
268
console traceback, resulting in clobbered output.</li>
271
<div class="section" id="version-1-2">
273
<p>(codename Neujahr, released Jan 01, 2010)</p>
275
<li>Dropped Python 2.3 compatibility.</li>
276
<li>Lexers added:<ul>
279
<li>Gherkin (Cucumber)</li>
284
<li>Added options for rendering LaTeX in source code comments in the
285
LaTeX formatter (#461).</li>
286
<li>Updated the Logtalk lexer.</li>
287
<li>Added <cite>line_number_start</cite> option to image formatter (#456).</li>
288
<li>Added <cite>hl_lines</cite> and <cite>hl_color</cite> options to image formatter (#457).</li>
289
<li>Fixed the HtmlFormatter's handling of noclasses=True to not output any
291
<li>Added the Monokai style (#453).</li>
292
<li>Fixed LLVM lexer identifier syntax and added new keywords (#442).</li>
293
<li>Fixed the PythonTracebackLexer to handle non-traceback data in header or
294
trailer, and support more partial tracebacks that start on line 2 (#437).</li>
295
<li>Fixed the CLexer to not highlight ternary statements as labels.</li>
296
<li>Fixed lexing of some Ruby quoting peculiarities (#460).</li>
297
<li>A few ASM lexer fixes (#450).</li>
248
300
<div class="section" id="version-1-1-1">
249
301
<h3>Version 1.1.1</h3>
250
302
<p>(bugfix release, released Sep 15, 2009)</p>
309
361
<h3>Version 1.0</h3>
310
362
<p>(codename Dreiundzwanzig, released Nov 23, 2008)</p>
312
<li><p class="first">Don't use join(splitlines()) when converting newlines to <tt class="docutils literal"><span class="pre">\n</span></tt>,
364
<li><p class="first">Don't use join(splitlines()) when converting newlines to <tt class="docutils literal">\n</tt>,
313
365
because that doesn't keep all newlines at the end when the
314
<tt class="docutils literal"><span class="pre">stripnl</span></tt> lexer option is False.</p>
366
<tt class="docutils literal">stripnl</tt> lexer option is False.</p>
316
<li><p class="first">Add <tt class="docutils literal"><span class="pre">-N</span></tt> option to command-line interface to get a lexer name
368
<li><p class="first">Added <tt class="docutils literal"><span class="pre">-N</span></tt> option to command-line interface to get a lexer name
317
369
for a given filename.</p>
319
<li><p class="first">Add Tango style, written by Andre Roberge for the Crunchy project.</p>
371
<li><p class="first">Added Tango style, written by Andre Roberge for the Crunchy project.</p>
321
<li><p class="first">Add Python3TracebackLexer and <tt class="docutils literal"><span class="pre">python3</span></tt> option to
373
<li><p class="first">Added Python3TracebackLexer and <tt class="docutils literal">python3</tt> option to
322
374
PythonConsoleLexer.</p>
324
<li><p class="first">Fix a few bugs in the Haskell lexer.</p>
376
<li><p class="first">Fixed a few bugs in the Haskell lexer.</p>
326
<li><p class="first">Fix PythonTracebackLexer to be able to recognize SyntaxError and
378
<li><p class="first">Fixed PythonTracebackLexer to be able to recognize SyntaxError and
327
379
KeyboardInterrupt (#360).</p>
329
381
<li><p class="first">Provide one formatter class per image format, so that surprises like:</p>
342
394
<li><p class="first">Unified Diff lexer supports the "udiff" alias now.</p>
344
<li><p class="first">Fix a few issues in Scala lexer (#367).</p>
396
<li><p class="first">Fixed a few issues in Scala lexer (#367).</p>
346
398
<li><p class="first">RubyConsoleLexer now supports simple prompt mode (#363).</p>
360
412
<h3>Version 0.11.1</h3>
361
413
<p>(released Aug 24, 2008)</p>
362
414
<ul class="simple">
363
<li>Fix a Jython compatibility issue in pygments.unistring (#358).</li>
415
<li>Fixed a Jython compatibility issue in pygments.unistring (#358).</li>
366
418
<div class="section" id="version-0-11">
391
443
<li>Vim lexer now highlights hex colors properly and knows a couple
392
444
more keywords.</li>
393
445
<li>Irc logs lexer now handles xchat's default time format (#340) and
394
correctly highlights lines ending in <tt class="docutils literal"><span class="pre">></span></tt>.</li>
446
correctly highlights lines ending in <tt class="docutils literal">></tt>.</li>
395
447
<li>Support more delimiters for perl regular expressions (#258).</li>
396
448
<li>ObjectiveC lexer now supports 2.0 features.</li>
400
452
<li>Updated markdown processor to Markdown 1.7.</li>
401
453
<li>Support roman/sans/mono style defs and use them in the LaTeX
403
<li>The RawTokenFormatter is no longer registered to <tt class="docutils literal"><span class="pre">*.raw</span></tt> and it's
455
<li>The RawTokenFormatter is no longer registered to <tt class="docutils literal">*.raw</tt> and it's
404
456
documented that tokenization with this lexer may raise exceptions.</li>
405
<li>New option <tt class="docutils literal"><span class="pre">hl_lines</span></tt> to HTML formatter, to highlight certain
457
<li>New option <tt class="docutils literal">hl_lines</tt> to HTML formatter, to highlight certain
407
<li>New option <tt class="docutils literal"><span class="pre">prestyles</span></tt> to HTML formatter.</li>
459
<li>New option <tt class="docutils literal">prestyles</tt> to HTML formatter.</li>
408
460
<li>New option <em>-g</em> to pygmentize, to allow lexer guessing based on
409
461
filetext (can be slowish, so file extensions are still checked
411
<li><tt class="docutils literal"><span class="pre">guess_lexer()</span></tt> now makes its decision much faster due to a cache
463
<li><tt class="docutils literal">guess_lexer()</tt> now makes its decision much faster due to a cache
412
464
of whether data is xml-like (a check which is used in several
413
versions of <tt class="docutils literal"><span class="pre">analyse_text()</span></tt>. Several lexers also have more
414
accurate <tt class="docutils literal"><span class="pre">analyse_text()</span></tt> now.</li>
465
versions of <tt class="docutils literal">analyse_text()</tt>. Several lexers also have more
466
accurate <tt class="docutils literal">analyse_text()</tt> now.</li>
417
469
<div class="section" id="version-0-10">
437
489
<li>In the LatexFormatter, the <em>commandprefix</em> option is now by default
438
490
'PY' instead of 'C', since the latter resulted in several collisions
439
491
with other packages. Also, the special meaning of the <em>arg</em>
440
argument to <tt class="docutils literal"><span class="pre">get_style_defs()</span></tt> was removed.</li>
492
argument to <tt class="docutils literal">get_style_defs()</tt> was removed.</li>
441
493
<li>Added ImageFormatter, to format code as PNG, JPG, GIF or BMP.
442
494
(Needs the Python Imaging Library.)</li>
443
495
<li>Support doc comments in the PHP lexer.</li>
489
541
give options whose values contain commas or equals signs.</li>
490
542
<li>Added 256-color terminal formatter.</li>
491
543
<li>Added an experimental SVG formatter.</li>
492
<li>Added the <tt class="docutils literal"><span class="pre">lineanchors</span></tt> option to the HTML formatter, thanks to
544
<li>Added the <tt class="docutils literal">lineanchors</tt> option to the HTML formatter, thanks to
493
545
Ian Charnas for the idea.</li>
494
546
<li>Gave the line numbers table a CSS class in the HTML formatter.</li>
495
547
<li>Added a Vim 7-like style.</li>
522
574
<li>The HTML formatter now has a second line-numbers mode in which it
523
will just integrate the numbers in the same <tt class="docutils literal"><span class="pre"><pre></span></tt> tag as the
575
will just integrate the numbers in the same <tt class="docutils literal"><pre></tt> tag as the
525
577
<li>The <cite>CSharpLexer</cite> now is Unicode-aware, which means that it has an
526
578
option that can be set so that it correctly lexes Unicode
628
680
<li>Support for guessing input encoding added.</li>
629
681
<li>Encoding support added: all processing is now done with Unicode
630
682
strings, input and output are converted from and optionally to byte
631
strings (see the <tt class="docutils literal"><span class="pre">encoding</span></tt> option of lexers and formatters).</li>
683
strings (see the <tt class="docutils literal">encoding</tt> option of lexers and formatters).</li>
632
684
<li>Some improvements in the C(++) lexers handling comments and line
633
685
continuations.</li>
637
689
<h3>Version 0.5.1</h3>
638
690
<p>(released Oct 30, 2006)</p>
639
691
<ul class="simple">
640
<li>Fixed traceback in <tt class="docutils literal"><span class="pre">pygmentize</span> <span class="pre">-L</span></tt> (thanks to Piotr Ozarowski).</li>
692
<li>Fixed traceback in <tt class="docutils literal">pygmentize <span class="pre">-L</span></tt> (thanks to Piotr Ozarowski).</li>
643
695
<div class="section" id="version-0-5">