66
77When building a console application it may be useful to display tabular data:
88
9- .. code-block :: text
9+ .. code-block :: terminal
1010
1111 +---------------+--------------------------+------------------+
1212 | ISBN | Title | Author |
@@ -54,7 +54,7 @@ You can add a table separator anywhere in the output by passing an instance of
5454 array('80-902734-1-6', 'And Then There Were None', 'Agatha Christie'),
5555 ));
5656
57- .. code-block :: text
57+ .. code-block :: terminal
5858
5959 +---------------+--------------------------+------------------+
6060 | ISBN | Title | Author |
@@ -78,7 +78,7 @@ The table style can be changed to any built-in styles via
7878
7979This code results in:
8080
81- .. code-block :: text
81+ .. code-block :: terminal
8282
8383 ISBN Title Author
8484 99921-58-10-7 Divine Comedy Dante Alighieri
@@ -93,7 +93,7 @@ You can also set the style to ``borderless``::
9393
9494which outputs:
9595
96- .. code-block :: text
96+ .. code-block :: terminal
9797
9898 =============== ========================== ==================
9999 ISBN Title Author
@@ -169,7 +169,7 @@ To make a table cell that spans multiple columns you can use a :class:`Symfony\\
169169
170170This results in:
171171
172- .. code-block :: text
172+ .. code-block :: terminal
173173
174174 +---------------+---------------+-----------------+
175175 | ISBN | Title | Author |
@@ -192,7 +192,7 @@ This results in:
192192
193193 This generates:
194194
195- .. code-block :: text
195+ .. code-block :: terminal
196196
197197 +-------+-------+--------+
198198 | Main table title |
@@ -223,7 +223,7 @@ In a similar way you can span multiple rows::
223223
224224This outputs:
225225
226- .. code-block :: text
226+ .. code-block :: terminal
227227
228228 +----------------+---------------+---------------------+
229229 | ISBN | Title | Author |
0 commit comments