diff options
author | Vanya Sergeev <vsergeev@gmail.com> | 2014-06-30 09:59:39 +0200 |
---|---|---|
committer | Alberto Bertogli <albertito@blitiri.com.ar> | 2014-07-03 01:56:19 +0200 |
commit | eb7cadd64faee9e654a9aee992d21d7bceb716ea (patch) | |
tree | 371a09f7d73a0cd053a18315fdd1d8cd09a66856 | |
parent | 48a00cb460f0e5252e28a59d462e40d891b0b54d (diff) | |
download | git-arr-fork-eb7cadd64faee9e654a9aee992d21d7bceb716ea.zip |
Enable line number anchors when using pygments HtmlFormatter
Signed-off-by: Vanya Sergeev <vsergeev@gmail.com>
-rw-r--r-- | utils.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |