Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 491c558

Browse files
committed
Minor reword
1 parent a285f58 commit 491c558

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

console/coloring.rst

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,22 +74,25 @@ 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</>``.
77+
Displaying Clickable Links
78+
~~~~~~~~~~~~~~~~~~~~~~~~~~
8179

8280
.. 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.
8482

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</>');
8687

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.
8992

9093
.. _Cmder: http://cmder.net/
9194
.. _ConEmu: https://conemu.github.io/
9295
.. _ANSICON: https://github.com/adoxa/ansicon/releases
9396
.. _Mintty: https://mintty.github.io/
9497
.. _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

Comments
 (0)