Dorkzone Colorizer
Took a whole 10 minutes. The code is simple (C#):
|
Code |
|
string text = this.textBox.Text;
StringBuilder result = new StringBuilder();
Random random = new Random();
foreach (char c in text.ToCharArray())
{
if (char.IsWhiteSpace(c))
result.Append(c);
else
{
int r = random.Next(256);
int g = random.Next(256);
int b = random.Next(256);
result.AppendFormat("[#{0:X2}{1:X2}{2:X2}]{3}[/REMOVETHIS#]", r, g, b, c);
}
}
Clipboard.SetText(result.ToString());
|
Enjoy.

P.S. Remove "REMOVETHIS" if you were to actually use this code, without it the closing tag [ / # ] would disappear in the post.