Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created May 16, 2021 21:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/17c07ee674094f5d57e5950b1ffaacbb to your computer and use it in GitHub Desktop.
Save parzibyte/17c07ee674094f5d57e5950b1ffaacbb to your computer and use it in GitHub Desktop.
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