Hi Im trying to add some color to this string for a simple Console app im creating. I would like each letter to be in a different color.
const string WelcomeMessage = @" _______ _ _______ _______" + NewLine +
@"|__ __(_) |__ __| |__ __| " + NewLine +
@" | | _ ___| | __ _ ___| | ___ __" + NewLine +
@" | | | |/ __| |/ _` |/ __| |/ _ \ / _ \ " + NewLine +
@" | | | | (__| | (_| | (__| | (_) | __/ " + NewLine +
@" |_| |_|\___|_|\__,_|\___|_|\___/ \___| "
I know that I could just use
Console.ForegroundColor = ConsoleColor.Blue;
Console.Write(" _______");
and then write each part of the letter, but that would make my code almost impossible to read and maintain. So I just wanna know if there exist some kind of StringBuilder designet for Console output where its possible to include foregroundColor information.