From 5d7049858294caf4f62bc7660a9b82587783099f Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Fri, 21 Mar 2014 10:04:32 +0100 Subject: [PATCH] IMPROVED : Docs Syntax Highlighting --- docs/containers.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/containers.rst b/docs/containers.rst index 115415de..dc8f2f9a 100644 --- a/docs/containers.rst +++ b/docs/containers.rst @@ -14,14 +14,14 @@ Sections Every visible element in word is placed inside of a section. To create a section, use the following code: -.. code:: php +.. code-block:: php $section = $phpWord->createSection($sectionSettings); The ``$sectionSettings`` is an optional associative array that sets the section. Example: -.. code:: php +.. code-block:: php $sectionSettings = array( 'orientation' => 'landscape', @@ -67,7 +67,7 @@ Page number You can change a section page number by using the ``pageNumberingStart`` property of the section. -.. code:: php +.. code-block:: php // Method 1 $section = $phpWord->createSection(array('pageNumberingStart' => 1)); @@ -82,7 +82,7 @@ Multicolumn You can change a section layout to multicolumn (like in a newspaper) by using the ``breakType`` and ``colsNum`` property of the section. -.. code:: php +.. code-block:: php // Method 1 $section = $phpWord->createSection(array('breakType' => 'continuous', 'colsNum' => 2)); @@ -98,7 +98,7 @@ Headers Each section can have its own header reference. To create a header use the ``createHeader`` method: -.. code:: php +.. code-block:: php $header = $section->createHeader(); @@ -113,7 +113,7 @@ Footers Each section can have its own footer reference. To create a footer, use the ``createFooter`` method: -.. code:: php +.. code-block:: php $footer = $section->createFooter();