Skip to content

Commit

Permalink
doc potencier added
Browse files Browse the repository at this point in the history
  • Loading branch information
jcheron committed Oct 18, 2017
1 parent 1849c3f commit eb5ba99
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,10 @@
def setup(app):
app.add_stylesheet('css/custom.css')

# load 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)
1 change: 0 additions & 1 deletion docs/controller/controllers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ The “index” method is always loaded by default if the second segment of the

.. code-block:: php5
:linenos:
:startinline: true
:caption: app/controllers/First.php
namespace controllers;
Expand Down

0 comments on commit eb5ba99

Please sign in to comment.