@@ -74,22 +74,25 @@ You can also set these colors and options directly inside the tag name::
74
74
or use the :method: `Symfony\\ Component\\ Console\\ Formatter\\ OutputFormatter::escape `
75
75
method to escape all the tags included in the given string.
76
76
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</> ``.
77
+ Displaying Clickable Links
78
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
81
79
82
80
.. versionadded :: 4.3
83
- The `` href `` tag was introduced in Symfony 4.3.
81
+ The feature to display clickable links was introduced in Symfony 4.3.
84
82
85
- .. note ::
83
+ Commands can use the special ``<href> `` tag to display links similar to the
84
+ ``<a> `` elements of web pages::
85
+
86
+ $output->writeln('<href=https://symfony.com>Symfony Homepage</>');
86
87
87
- The ``href `` tag currently does not work in all terminals, see `Hyperlinks in Terminal Emulators `_
88
- for more information.
88
+ If your terminal belongs to the `list of terminal emulators that support links `_
89
+ you can click on the *"Symfony Homepage" * text to open its URL in your default
90
+ browser. Otherwise, you'll see *"Symfony Homepage" * as regular text and the URL
91
+ will be lost.
89
92
90
93
.. _Cmder : http://cmder.net/
91
94
.. _ConEmu : https://conemu.github.io/
92
95
.. _ANSICON : https://github.com/adoxa/ansicon/releases
93
96
.. _Mintty : https://mintty.github.io/
94
97
.. _Hyper : https://hyper.is/
95
- .. _ Hyperlinks in Terminal Emulators : https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
98
+ .. _ `list of terminal emulators that support links` : https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda
0 commit comments