Enable line number anchors when using pygments HtmlFormatter

Signed-off-by: Vanya Sergeev <vsergeev@gmail.com>
This commit is contained in:
Vanya Sergeev 2014-06-30 00:59:39 -07:00 committed by Alberto Bertogli
parent 48a00cb460
commit eb7cadd64f

@ -89,7 +89,9 @@ def colorize_blob(fname, s):
formatter = HtmlFormatter(encoding = 'utf-8',
cssclass = 'source_code',
linenos = 'table')
linenos = 'table',
anchorlinenos = True,
lineanchors = 'line')
return highlight(s, lexer, formatter)