mirror of
https://github.com/searxng/searxng.git
synced 2025-07-16 09:49:21 +02: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:
parent
4c631ac6d0
commit
32cd0d31b3
32 changed files with 2180 additions and 1667 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue