You can install the extension by:
sudo pip install git+https://github.com/fabpot/sphinx-php.git;
cloning the project and add
sensioto your path (with something like
Note that these Sphinx extensions do not work with Python 3.
You can use the following extensions in your
To enable highlighting for PHP code not between
<?php ... ?> by default:
# loading PhpLexer from sphinx.highlighting import lexers from pygments.lexers.web import PhpLexer # enable highlighting for PHP code not between ``<?php ... ?>`` by default lexers['php'] = PhpLexer(startinline=True) lexers['php-annotations'] = PhpLexer(startinline=True)
And here is how to use PHP as the primary domain:
primary_domain = 'php'
api_url for links to the API:
api_url = 'http://api.symfony.com/master/%s'