Skip to content

Commit f8a067f

Browse files
committed
IMPROVED : Docs Syntax Highlighting
1 parent aec8d9f commit f8a067f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/general.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Basic example
99
The following is a basic example of the PHPWord library. More examples
1010
are provided in the `samples folder <samples/>`__.
1111

12-
.. code:: php
12+
.. code-block:: php
1313
1414
$PHPWord = new PHPWord();
1515
@@ -49,7 +49,7 @@ Default font
4949
By default, every text appears in Arial 10 point. You can alter the
5050
default font by using the following two functions:
5151

52-
.. code:: php
52+
.. code-block:: php
5353
5454
$phpWord->setDefaultFontName('Times New Roman');
5555
$phpWord->setDefaultFontSize(12);
@@ -60,7 +60,7 @@ Document properties
6060
You can set the document properties such as title, creator, and company
6161
name. Use the following functions:
6262

63-
.. code:: php
63+
.. code-block:: php
6464
6565
$properties = $PHPWord->getProperties();
6666
$properties->setCreator('My name');
@@ -83,7 +83,7 @@ of an Inch Point", i.e. 1 twip = 1/1440 inch.
8383
You can use PHPWord helper functions to convert inches, centimeters, or
8484
points to twips.
8585

86-
.. code:: php
86+
.. code-block:: php
8787
8888
// Paragraph with 6 points space after
8989
$phpWord->addParagraphStyle('My Style', array(

0 commit comments

Comments
 (0)