@@ -14,14 +14,14 @@ Sections
14
14
Every visible element in word is placed inside of a section. To create a
15
15
section, use the following code:
16
16
17
- .. code :: php
17
+ .. code-block :: php
18
18
19
19
$section = $phpWord->createSection($sectionSettings);
20
20
21
21
The ``$sectionSettings `` is an optional associative array that sets the
22
22
section. Example:
23
23
24
- .. code :: php
24
+ .. code-block :: php
25
25
26
26
$sectionSettings = array(
27
27
'orientation' => 'landscape',
@@ -67,7 +67,7 @@ Page number
67
67
You can change a section page number by using the ``pageNumberingStart ``
68
68
property of the section.
69
69
70
- .. code :: php
70
+ .. code-block :: php
71
71
72
72
// Method 1
73
73
$section = $phpWord->createSection(array('pageNumberingStart' => 1));
@@ -82,7 +82,7 @@ Multicolumn
82
82
You can change a section layout to multicolumn (like in a newspaper) by
83
83
using the ``breakType `` and ``colsNum `` property of the section.
84
84
85
- .. code :: php
85
+ .. code-block :: php
86
86
87
87
// Method 1
88
88
$section = $phpWord->createSection(array('breakType' => 'continuous', 'colsNum' => 2));
@@ -98,7 +98,7 @@ Headers
98
98
Each section can have its own header reference. To create a header use
99
99
the ``createHeader `` method:
100
100
101
- .. code :: php
101
+ .. code-block :: php
102
102
103
103
$header = $section->createHeader();
104
104
@@ -113,7 +113,7 @@ Footers
113
113
Each section can have its own footer reference. To create a footer, use
114
114
the ``createFooter `` method:
115
115
116
- .. code :: php
116
+ .. code-block :: php
117
117
118
118
$footer = $section->createFooter();
119
119
0 commit comments