Highlighting Text Inside Of Quotes
Anyway, I'm creating a little tool to highlight some script (this is just for fun), I have highlighting working from a article on CodeProject, but I can't seem to color the text only inside of quotes.
Heres the code I have at the moment:
if (token == "\'" || token.StartsWith("\'"))
{
int length = line.Length - (index - start);
string execText = richTextBox1.Text.Substring(index, length);
richTextBox1.SelectionStart = index;
richTextBox1.SelectionLength = length;
richTextBox1.SelectionColor = Color.Crimson;
richTextBox1.SelectionFont = new Font("Courier New", 10, FontStyle.Regular);
break;
}
Now this highlights fine and all, but it highlights everything after the first quote and doesn't stop until a new line. I want it to stop when it reaches the next '
Any help is greatly appreciated.

