Pygments 0.8 Maikäfer Released
The new version of Pygments 0.8 aka Maikäfter is out now. Changes in this release:
- Lexers added:
- Haskell, thanks to Adam Blinkinsop
- Redcode, thanks to Adam Blinkinsop
- D, thanks to Kirk McDonald
- MuPad, thanks to Christopher Creutzig
- MiniD, thanks to Jarrett Billingsley
- Vim Script, by Tim Hatch
- The HTML formatter now has a second line-numbers mode in which it will just integrate the numbers in the same <pre> tag as the code.
- The CSharpLexer now is Unicode-aware, which means that it has an option that can be set so that it correctly lexes Unicode identifiers allowed by the C# specs.
- Added a RaiseOnErrorTokenFilter that raises an exception when the lexer generates an error token, and a VisibleWhitespaceFilter that converts whitespace (spaces, tabs, newlines) into visible characters.
- Fixed the do_insertions() helper function to yield correct indices.
- The ReST lexer now automatically highlights source code blocks in .. sourcecode:: language and .. code:: language directive blocks.
- Improved the default style (thanks to Tiberius Teng). The old default is still available as the "emacs" style (which was an alias before).
- The get_style_defs method of HTML formatters now uses the cssclass option as the default selector if it was given.
- Improved the ReST and Bash lexers a bit.
- and again improved highlighting and fixed some bugs
Get it while it’s hot from the cheeseshop.