6
6
7
7
When building a console application it may be useful to display tabular data:
8
8
9
- .. code-block :: text
9
+ .. code-block :: terminal
10
10
11
11
+---------------+--------------------------+------------------+
12
12
| ISBN | Title | Author |
@@ -54,7 +54,7 @@ You can add a table separator anywhere in the output by passing an instance of
54
54
array('80-902734-1-6', 'And Then There Were None', 'Agatha Christie'),
55
55
));
56
56
57
- .. code-block :: text
57
+ .. code-block :: terminal
58
58
59
59
+---------------+--------------------------+------------------+
60
60
| ISBN | Title | Author |
@@ -78,7 +78,7 @@ The table style can be changed to any built-in styles via
78
78
79
79
This code results in:
80
80
81
- .. code-block :: text
81
+ .. code-block :: terminal
82
82
83
83
ISBN Title Author
84
84
99921-58-10-7 Divine Comedy Dante Alighieri
@@ -93,7 +93,7 @@ You can also set the style to ``borderless``::
93
93
94
94
which outputs:
95
95
96
- .. code-block :: text
96
+ .. code-block :: terminal
97
97
98
98
=============== ========================== ==================
99
99
ISBN Title Author
@@ -169,7 +169,7 @@ To make a table cell that spans multiple columns you can use a :class:`Symfony\\
169
169
170
170
This results in:
171
171
172
- .. code-block :: text
172
+ .. code-block :: terminal
173
173
174
174
+---------------+---------------+-----------------+
175
175
| ISBN | Title | Author |
@@ -192,7 +192,7 @@ This results in:
192
192
193
193
This generates:
194
194
195
- .. code-block :: text
195
+ .. code-block :: terminal
196
196
197
197
+-------+-------+--------+
198
198
| Main table title |
@@ -223,7 +223,7 @@ In a similar way you can span multiple rows::
223
223
224
224
This outputs:
225
225
226
- .. code-block :: text
226
+ .. code-block :: terminal
227
227
228
228
+----------------+---------------+---------------------+
229
229
| ISBN | Title | Author |
0 commit comments