[mod] upgrade pygments

add searx_extra/update/update_pygments.py to update the css style of the oscar and simple themes.
This commit is contained in:
Alexandre Flament 2020-09-16 08:53:05 +02:00
parent 4c631ac6d0
commit 32cd0d31b3
32 changed files with 2180 additions and 1667 deletions

View file

@ -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