Skip to content

Commit a285f58

Browse files
committed
minor #10768 [Console] Add hyperlinks support (TimoBakx)
This PR was merged into the master branch. Discussion ---------- [Console] Add hyperlinks support Fixes #10737. I added the note because the href tag currently doesn't work in my default Mac terminal and crashes the PhpStorm terminal. It works well in iTerm, though. Commits ------- d558585 [Console] Add hyperlinks support
2 parents 9afe870 + d558585 commit a285f58

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

console/coloring.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,22 @@ You can also set these colors and options directly inside the tag name::
7474
or use the :method:`Symfony\\Component\\Console\\Formatter\\OutputFormatter::escape`
7575
method to escape all the tags included in the given string.
7676

77+
Using links
78+
~~~~~~~~~~~
79+
80+
You can use links in the output using the ``href`` tag, for example: ``<href=https://www.symfony.com/>Symfony</>``.
81+
82+
.. versionadded:: 4.3
83+
The ``href`` tag was introduced in Symfony 4.3.
84+
85+
.. note::
86+
87+
The ``href`` tag currently does not work in all terminals, see `Hyperlinks in Terminal Emulators`_
88+
for more information.
89+
7790
.. _Cmder: http://cmder.net/
7891
.. _ConEmu: https://conemu.github.io/
7992
.. _ANSICON: https://github.com/adoxa/ansicon/releases
8093
.. _Mintty: https://mintty.github.io/
8194
.. _Hyper: https://hyper.is/
95+
.. _Hyperlinks in Terminal Emulators: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda

0 commit comments

Comments
 (0)