We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0fb853 commit b44a26eCopy full SHA for b44a26e
conf.py
@@ -82,7 +82,6 @@ def has(self, *args):
82
'pgp-fingerprint': '9DA31620334BD75D9DCB49F368818C72E52529D4'
83
}
84
85
-pygments_style = 'sphinx'
86
87
extlinks = {
88
'hardlink' : ( 'http://docs.mongodb.com/{0}/%s'.format(conf.git.branches.current), ''),
@@ -182,6 +181,12 @@ def has(self, *args):
182
181
183
html_sidebars = sconf.sidebars
184
+# Set up PHP syntax highlights
185
+from sphinx.highlighting import lexers
186
+from pygments.lexers.web import PhpLexer
187
+lexers["php"] = PhpLexer(startinline=True)
188
+lexers["php-annotations"] = PhpLexer(startinline=True)
189
+
190
# -- Options for LaTeX output --------------------------------------------------
191
192
latex_documents = []
0 commit comments