I am trying to create a Code Editor that has Syntax Highlighting using WPF RichTextBox. My idea is that whenever a selection is changed (through inserting/ deleting/ or poin