Skip to content

Commit 3658b1e

Browse files
committed
fixed markup
1 parent a565874 commit 3658b1e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

components/console.rst

+1-3
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ and add the following to it::
6262
}
6363

6464
You also need to create the file to run at the command line which creates
65-
an ``Application`` and adds commands to it:
66-
67-
.. code-block::php
65+
an ``Application`` and adds commands to it::
6866

6967
#!/usr/bin/env php
7068
# app/console

components/templating.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ template associated to a reference.
4444
The :method:`Symfony\\Component\\Templating\\PhpEngine::render` method executes
4545
the file `views/hello.php` and returns the output text.
4646

47-
.. code-block::php
47+
.. code-block:: php
4848
4949
<!-- views/hello.php -->
5050
Hello, <?php echo $firstname ?>!
@@ -54,7 +54,7 @@ Template Inheritance with Slots
5454

5555
The template inheritance is designed to share layouts with many templates.
5656

57-
.. code-block::php
57+
.. code-block:: php
5858
5959
<!-- views/layout.php -->
6060
<html>
@@ -69,7 +69,7 @@ The template inheritance is designed to share layouts with many templates.
6969
The :method:`Symfony\\Templating\\PhpEngine::extend` method is called in the
7070
sub-template to set its parent template.
7171

72-
.. code-block::php
72+
.. code-block:: php
7373
7474
<!-- views/page.php -->
7575
<?php $view->extend('layout.php') ?>

0 commit comments

Comments
 (0)