New in Symfony 3.2: Console Improvements (Part 3)
Read the part 1 and part 2 of this series of articles explaining the new features of the Console component in Symfony 3.2.
Added support for multiple text style options¶
Contributed by
SpacePossum
in #19495.
The output of the console commands can use any of these text styles to change
its appearance: bold
, underscore
, blink
, reverse
and conceal
.
In Symfony 3.2, you can combine more than one text style for a single content
(for example to display some text bold and underscored):
1 | $output->writeln('<fg=green;options=bold,underscore>Test</>');
|
In any case, remember that Symfony provides a simpler way to apply the same style to your console commands in a consistent way.
As with any Open-Source project, contributing code or documentation is the most common way to help, but we also have a wide range of sponsoring opportunities.
New in Symfony 3.2: Console Improvements (Part 3) symfony.com/blog/new-in-symfony-3-2-console-improvements-part-3
Tweet thisComments
Comments are closed.
To ensure that comments stay relevant, they are closed for old posts.
Tomáš Votruba said on Oct 14, 2016 at 12:03 #1