+ 2
How do i color text in c#
I want to color text in a c# console application how ?
2 ответов
+ 6
This might be helpful for you.
Although it's saying Python but the ASCII color codes used inside can be used for any programming language.
https://code.sololearn.com/c0CQWr4s36M4/?ref=app
+ 2
Console.BackgroundColor = ConsoleColor.Blue;
Console.ForegroundColor = ConsoleColor.White;
ForegroundColor is the text color.
https://www.dotnetperls.com/console-color
This unfortunately does not work in the sololearn playground, because that is just an output window.