Skip to content

Commit a29603d

Browse files
committed
minor #10090 Show console table examples in a console terminal (javiereguiluz)
This PR was merged into the 2.8 branch. Discussion ---------- Show console table examples in a console terminal I think it looks better this way. ## Before ![before](https://user-images.githubusercontent.com/73419/42892907-3fb96038-8ab3-11e8-84f4-d6f23c8d966b.png) ## After ![after](https://user-images.githubusercontent.com/73419/42892911-4293b678-8ab3-11e8-9baf-ecfb95edbace.png) Commits ------- f609ec9 Show console table examples in a console terminal
2 parents e8fe1e8 + f609ec9 commit a29603d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

components/console/helpers/table.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Table
66

77
When 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

7979
This 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

9494
which 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

170170
This 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

224224
This outputs:
225225

226-
.. code-block:: text
226+
.. code-block:: terminal
227227
228228
+----------------+---------------+---------------------+
229229
| ISBN | Title | Author |

0 commit comments

Comments
 (0)