diff --git a/components/console/helpers/formatterhelper.rst b/components/console/helpers/formatterhelper.rst index ba3c2743d24..ad2bded040b 100644 --- a/components/console/helpers/formatterhelper.rst +++ b/components/console/helpers/formatterhelper.rst @@ -78,7 +78,9 @@ you can write:: $truncatedMessage = $formatter->truncate($message, 7); $output->writeln($truncatedMessage); -And the output will be:: +And the output will be: + +.. code-block:: text This is... @@ -93,7 +95,9 @@ from the end of the string:: $truncatedMessage = $formatter->truncate($message, -5); -This will result in:: +This will result in: + +.. code-block:: text This is a very long message, which should be trun... diff --git a/components/console/helpers/table.rst b/components/console/helpers/table.rst index 45336c1175e..b59abe1d73a 100644 --- a/components/console/helpers/table.rst +++ b/components/console/helpers/table.rst @@ -72,8 +72,8 @@ You can add a table separator anywhere in the output by passing an instance of You can optionally display titles at the top and the bottom of the table:: // ... - $table->setHeaderTitle('Books') - $table->setFooterTitle('Page 1/2') + $table->setHeaderTitle('Books'); + $table->setFooterTitle('Page 1/2'); $table->render(); .. code-block:: terminal diff --git a/components/dom_crawler.rst b/components/dom_crawler.rst index 93aba242eaf..fd35b5e7fd8 100644 --- a/components/dom_crawler.rst +++ b/components/dom_crawler.rst @@ -555,7 +555,9 @@ You can virtually set and get values on the form:: // where "registration" is its own array $values = $form->getPhpValues(); -To work with multi-dimensional fields:: +To work with multi-dimensional fields: + +.. code-block:: html