Answers for "color change for only one console print C#"

C#
1

c# change colour of console

Console.BackgroundColor = ConsoleColor.Green;
            Console.ForegroundColor = ConsoleColor.DarkGreen;
            Console.Clear();
            //green on green
            Console.WriteLine("yo");
            Console.ReadLine();
Posted by: Guest on March-06-2020
0

How to Color and Style the Console Output

use SymfonyComponentConsoleFormatterOutputFormatterStyle;

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

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

C# Answers by Framework

Browse Popular Code Answers by Language