红色代码 是 “red” font=red;
如果是部分变色建议用RichTextBox控件
textBox1.ForeColor = Color.Red;这行代码指定文本框textBox1的输出为红色。