-
-
Save parzibyte/17c07ee674094f5d57e5950b1ffaacbb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace CambiarColorTexto | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("https://parzibyte.me/blog"); | |
Console.ForegroundColor = ConsoleColor.Red; | |
Console.WriteLine("Soy texto en rojo"); | |
Console.ForegroundColor = ConsoleColor.Green; | |
Console.WriteLine("Soy texto en verde"); | |
Console.ForegroundColor = ConsoleColor.Blue; | |
Console.WriteLine("Soy texto en azul"); | |
Console.ForegroundColor = ConsoleColor.White; | |
Console.WriteLine("Soy texto en blanco"); | |
Console.ForegroundColor = ConsoleColor.Gray; | |
Console.WriteLine("Soy texto en gris (por defecto)"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment