Enable line number anchors when using pygments HtmlFormatter
Signed-off-by: Vanya Sergeev <vsergeev@gmail.com>
This commit is contained in:
parent
48a00cb460
commit
eb7cadd64f
4
utils.py
4
utils.py
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user