From 32cd0d31b3bb7e1c41ce11fd4e4ee9de557ae9a7 Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Wed, 16 Sep 2020 08:53:05 +0200 Subject: [mod] upgrade pygments add searx_extra/update/update_pygments.py to update the css style of the oscar and simple themes. --- searx/webapp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'searx/webapp.py') diff --git a/searx/webapp.py b/searx/webapp.py index ed1e9ce49..062077292 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -242,7 +242,8 @@ def code_highlighter(codelines, language=None): # highlight last codepart formatter = HtmlFormatter(linenos='inline', - linenostart=line_code_start) + linenostart=line_code_start, + cssclass="code-highlight") html_code = html_code + highlight(tmp_code, lexer, formatter) # reset conditions for next codepart @@ -256,7 +257,7 @@ def code_highlighter(codelines, language=None): last_line = line # highlight last codepart - formatter = HtmlFormatter(linenos='inline', linenostart=line_code_start) + formatter = HtmlFormatter(linenos='inline', linenostart=line_code_start, cssclass="code-highlight") html_code = html_code + highlight(tmp_code, lexer, formatter) return html_code -- cgit v1.2.3