Permalink
Browse files

Changing a few wordings as well as code references to methods

  • Loading branch information...
1 parent 1b2245f commit 448d0511126b34232bee5ae4fcc5ab7ae06c1e47 @Sgoettschkes committed Dec 4, 2012
Showing with 10 additions and 7 deletions.
  1. +10 −7 components/console/helpers/formatterhelper.rst
@@ -25,7 +25,8 @@ Symfony uses a defined style when printing to the command line.
It prints the section in color and with brackets around and the
actual message behind this section indication.
-To reproduce this style, you can use the `` formatSection`` method like this::
+To reproduce this style, you can use the
+:method:`Symfony\\Component\\Console\\Helper\\FormatterHelper::formatSection`::
$formattedLine = $formatter->formatSection('SomeCommand', 'Some output from within the SomeCommand');
$output->writeln($formattedLine);
@@ -37,13 +38,15 @@ Sometimes you want to be able to print a whole block of text with a background
color. Symfony uses this when printing error messages.
If you print your error message on more than one line manually, you will
-notice that the background is only as long as each individual line. You
-can use the `formatBlock` method to create a real block output::
+notice that the background is only as long as each individual line. Use the
+:method:`Symfony\\Component\\Console\\Helper\\FormatterHelper::formatBlock`
+togenerate a block output::
$errorMessages = array('Error!', 'Something went wrong');
$formattedBlock = $formatter->formatBlock($errorMessages, 'error');
-As you can see, passing an array of messages to the `formatBlock` method creates
-the desired output. If you pass `true` as third parameter, the block will be
-formatted with more padding (one blank line above and below the messages and 2
-spaces on the left and right).
+As you can see, passing an array of messages to the
+:method:`Symfony\\Component\\Console\\Helper\\FormatterHelper::formatBlock`
+method creates the desired output. If you pass ``true`` as third parameter, the
+block will be formatted with more padding (one blank line above and below the
+messages and 2 spaces on the left and right).

0 comments on commit 448d051

Please sign in to comment.