Skip to content

Commit 5d70498

Browse files
committed
IMPROVED : Docs Syntax Highlighting
1 parent ca4dc46 commit 5d70498

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/containers.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ Sections
1414
Every visible element in word is placed inside of a section. To create a
1515
section, use the following code:
1616

17-
.. code:: php
17+
.. code-block:: php
1818
1919
$section = $phpWord->createSection($sectionSettings);
2020
2121
The ``$sectionSettings`` is an optional associative array that sets the
2222
section. Example:
2323

24-
.. code:: php
24+
.. code-block:: php
2525
2626
$sectionSettings = array(
2727
'orientation' => 'landscape',
@@ -67,7 +67,7 @@ Page number
6767
You can change a section page number by using the ``pageNumberingStart``
6868
property of the section.
6969

70-
.. code:: php
70+
.. code-block:: php
7171
7272
// Method 1
7373
$section = $phpWord->createSection(array('pageNumberingStart' => 1));
@@ -82,7 +82,7 @@ Multicolumn
8282
You can change a section layout to multicolumn (like in a newspaper) by
8383
using the ``breakType`` and ``colsNum`` property of the section.
8484

85-
.. code:: php
85+
.. code-block:: php
8686
8787
// Method 1
8888
$section = $phpWord->createSection(array('breakType' => 'continuous', 'colsNum' => 2));
@@ -98,7 +98,7 @@ Headers
9898
Each section can have its own header reference. To create a header use
9999
the ``createHeader`` method:
100100

101-
.. code:: php
101+
.. code-block:: php
102102
103103
$header = $section->createHeader();
104104
@@ -113,7 +113,7 @@ Footers
113113
Each section can have its own footer reference. To create a footer, use
114114
the ``createFooter`` method:
115115

116-
.. code:: php
116+
.. code-block:: php
117117
118118
$footer = $section->createFooter();
119119

0 commit comments

Comments
 (0)