private void Scintilla_TextInserted(object sender, TextModifiedEventArgs e) { // I'm going to have to look into making this a little less "sledge hammer to // the entire documnet"ish if (_snippetLinks.IsActive && (e.UndoRedoFlags.IsUndo || e.UndoRedoFlags.IsRedo)) Scintilla.NativeInterface.Colourise(0, -1); }