We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3eaa80 commit 3e65874Copy full SHA for 3e65874
console/coloring.rst
@@ -65,6 +65,14 @@ You can also set these colors and options directly inside the tagname::
65
// bold text on a yellow background
66
$output->writeln('<bg=yellow;options=bold>foo</>');
67
68
+.. note::
69
+
70
+ If you need to render a tag literally, you must escape it with a backslash: ``\<info>``.
71
+ You can use :method:`OutputFormatter::escape() <Symfony\\Component\\Console\\Formatter\\OutputFormatter::escape>`
72
+ to escape all tags of a given text.
73
74
+ If you need to render a literal backslash before a tag, replace it with ``<<``.
75
76
.. _Cmder: http://cmder.net/
77
.. _ConEmu: https://conemu.github.io/
78
.. _ANSICON: https://github.com/adoxa/ansicon/releases
0 commit comments