I'm using pygments version 1.6 on a blog to do some syntax highlighting (via the CodeHilite extension for markdown)
The syntax highlighting for python is great. However, if I try to use the pytb
lexer for highlighting a python traceback it's very underwhelming
I can check that it is available:
for lexer in pygments.lexers.get_all_lexers():
print lexer
........
('Python Traceback', ('pytb',), ('*.pytb',), ('text/x-python-traceback',))
.......
but it looks nothing like the demo: http://pygments.org/demo/61075/?style=native
instead, it highlights to a basic white font.
EDIT
My code:
<div class="codehilite">
<pre>
<span class="go">TypeError: Error when calling the metaclass bases</span>
<span class="go"> class _AsyncDeviceInquiry does not correctly implement protocol IOBluetoothDeviceInquiryDelegate: the signature for method deviceInquiryComplete:error:aborted: is v@:@iB instead of v@:@iZ</span>
</pre>
</div>
Code from the Demo
<div class="syntax">
<pre>
:
<span class="nc">ImportError</span>
:
<span class="n-Identifier">('No module named TMPD54~1.049d4d1330606d5fa968586a2810c4fc', '[DimShuffle{x}(TensorConstant{2.0})]')</span>
</pre>
</div>