Colors
follows the color scheme used by mIrc and a slight modification for more powerful in house use.

<fg> == foreground
<bg> == background
[] == optional

mIrc compatibility
Format:
0x03<fg>[,<bg>] sets the foreground and background
0x03 resets to defaults for that line

native
Format:
˜<fg>[,<bg>] sets the foreground and background
˜c resets to defaults
˜b sets bold font
˜u sets underline
˜i sets italics
˜r sets reverse video
Why did I change to use ˜ instead of 0x03 (C)? Well, it's hard to use 0x03 in scripts and not all C functions seem to like it. ˜letter also allows more commands while not stomping on mIrc's future changes.

Color Numbers
white
black
blue
green
red
brown
purple
orange
yellow
lightGreen
cyan
lightCyan
lightBlue
pink
gray
lightGray

Sending Bold, Underline, Reverse, and Color
You can use the following key combinations to insert control codes in text:
B for bold text
U for underlined text
R for reverse text
K for colored text
O for plain text

Examples
To underline a single word in a sentence:
Type U
Type in the word
Type U again
Only the text that is enclosed by the start and end codes will be affected. You can use this method with all of the other control codes.
The K control code is slightly different because it allows you to specify a color number. To color a single word in a sentence:
Type K
Type a number between 0 and 15
Type the word
Type K again
If you also want to change the background color of a word, you would need to type two numbers separated by a comma instead of just one number. The first number is the text color, the second number is the background color. The colors range from 0 to 15, the index is in the previous section.
You can enclose text in multiple control codes, so for example you could have a bold, underlined, and colored word.