summaryrefslogtreecommitdiff
path: root/sphinx/writers/html.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/writers/html.py')
-rw-r--r--sphinx/writers/html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/writers/html.py b/sphinx/writers/html.py
index 60cc7d999..9ac76901b 100644
--- a/sphinx/writers/html.py
+++ b/sphinx/writers/html.py
@@ -475,7 +475,7 @@ class HTMLTranslator(SphinxTranslator, BaseTranslator):
lang = node.get('language', 'default')
linenos = node.get('linenos', False)
highlight_args = node.get('highlight_args', {})
- highlight_args['force'] = node.get('force_highlighting', False)
+ highlight_args['force'] = node.get('force', False)
if lang is self.builder.config.highlight_language:
# only pass highlighter options for original language
opts = self.builder.config.highlight_options