diff --git a/console/coloring.rst b/console/coloring.rst index 5ff947d1962..034c339fd11 100644 --- a/console/coloring.rst +++ b/console/coloring.rst @@ -65,6 +65,12 @@ You can also set these colors and options directly inside the tagname:: // bold text on a yellow background $output->writeln('foo'); +.. note:: + + If you need to render a tag literally, escape it with a backslash: ``\`` + or use the :method:`Symfony\\Component\\Console\\Formatter\\OutputFormatter::escape` + method to escape all the tags included in the given string. + .. _Cmder: http://cmder.net/ .. _ConEmu: https://conemu.github.io/ .. _ANSICON: https://github.com/adoxa/ansicon/releases