Skip to content

Commit 15595cd

Browse files
committed
Merge pull request #1436 from ricardclau/2.0
add lexers in conf.py addings
2 parents f28ccb3 + d7ca55c commit 15595cd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

contributing/documentation/format.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,11 @@ Installing the Sphinx extensions
146146
147147
# ...
148148
sys.path.append(os.path.abspath('_exts'))
149-
149+
150+
# adding PhpLexer
151+
from sphinx.highlighting import lexers
152+
from pygments.lexers.web import PhpLexer
153+
150154
# ...
151155
# add the extensions to the list of extensions
152156
extensions = [..., 'sensio.sphinx.refinclude', 'sensio.sphinx.configurationblock', 'sensio.sphinx.phpcode']

0 commit comments

Comments
 (0)