Skip to content

Commit ad07072

Browse files
authored
clarify highlight_language conf option
1 parent 929c007 commit ad07072

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/codeql/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
# The name of the Pygments (syntax highlighting) style to use.
4040
pygments_style = 'sphinx'
4141

42-
# The default language for syntax highlighting, defaults to Python if omitted.
42+
# The default language for syntax highlighting. We need to explicitly set this to "none",
43+
# otherwise Sphinx tries to highlight any unlabeled code samples as "python3".
44+
# See https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-highlight_language.
4345

4446
highlight_language = "none"
4547

0 commit comments

Comments
 (0)