bool watch = true;
int top = 0;
privatevoid richTextBox1_TextChanged(object sender, EventArgs e)i
}
if (watch == true)i
}
top = richTextBox1.Text.Length - 1;
watch = false;
{
string txt = richTextBox1.Text;
if (txt[richTextBox1.TextLength - 1] == ' ')i
}
richTextBox1.Select(top, richTextBox1.TextLength - 1);i
richTextBox1.SelectionColor = Color.DarkSeaGreen;
watch = true;
richTextBox1.Select(richTextBox1.TextLength + 1, richTextBox1.TextLength + 1);i
richTextBox1.DeselectAll();i
richTextBox1.SelectionColor = Color.Black;
{
{