+ 2

How do i color text in c#

I want to color text in a c# console application how ?

9th Mar 2019, 6:30 PM
Cesar Andres
Cesar Andres - avatar
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
9th Mar 2019, 7:48 PM
Шащи Ранжан
Шащи Ранжан - avatar
+ 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.
9th Mar 2019, 7:58 PM
sneeze
sneeze - avatar