summaryrefslogtreecommitdiff
path: root/searx/webapp.py
diff options
context:
space:
mode:
authorDr. Rolf Jansen <cyclaero@users.noreply.github.com>2021-03-16 08:45:57 -0300
committerGitHub <noreply@github.com>2021-03-16 08:45:57 -0300
commit7a9dc63d74929f657170a43b269529a028e64a93 (patch)
tree523de9cfebdb4e73445f317880187c6dd532ebba /searx/webapp.py
parent2a6dbeb6a5073d2fde5d655d5d99273b346f4ff0 (diff)
parentcb3b379161e3351d4829b2e37478125582b9fc08 (diff)
Merge branch 'master' into conditional-sigusr1
Diffstat (limited to 'searx/webapp.py')
-rwxr-xr-xsearx/webapp.py5
1 files changed, 3 insertions, 2 deletions
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