mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 12:10:00 +00:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user