Skip to content

Commit d7ca55c

Browse files
committed
add lexers in conf.py addings
1 parent 240cf46 commit d7ca55c

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)