File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Basic example
9
9
The following is a basic example of the PHPWord library. More examples
10
10
are provided in the `samples folder <samples/ >`__.
11
11
12
- .. code :: php
12
+ .. code-block :: php
13
13
14
14
$PHPWord = new PHPWord();
15
15
@@ -49,7 +49,7 @@ Default font
49
49
By default, every text appears in Arial 10 point. You can alter the
50
50
default font by using the following two functions:
51
51
52
- .. code :: php
52
+ .. code-block :: php
53
53
54
54
$phpWord->setDefaultFontName('Times New Roman');
55
55
$phpWord->setDefaultFontSize(12);
@@ -60,7 +60,7 @@ Document properties
60
60
You can set the document properties such as title, creator, and company
61
61
name. Use the following functions:
62
62
63
- .. code :: php
63
+ .. code-block :: php
64
64
65
65
$properties = $PHPWord->getProperties();
66
66
$properties->setCreator('My name');
@@ -83,7 +83,7 @@ of an Inch Point", i.e. 1 twip = 1/1440 inch.
83
83
You can use PHPWord helper functions to convert inches, centimeters, or
84
84
points to twips.
85
85
86
- .. code :: php
86
+ .. code-block :: php
87
87
88
88
// Paragraph with 6 points space after
89
89
$phpWord->addParagraphStyle('My Style', array(
You can’t perform that action at this time.
0 commit comments