Answers for "how to put color in console"

17

how to color console.log

console.log('%c Oh my heavens! ', 'background: #222; color: #bada55');
Posted by: Guest on April-09-2020
0

How to Color and Style the Console Output

use Symfony\Component\Console\Formatter\OutputFormatterStyle;

// ...
$outputStyle = new OutputFormatterStyle('red', '#ff0', ['bold', 'blink']);
$output->getFormatter()->setStyle('fire', $outputStyle);

$output->writeln('<fire>foo</>');
Posted by: Guest on April-19-2021

Code answers related to "how to put color in console"

Code answers related to "Javascript"

Browse Popular Code Answers by Language