public static void DisplayErrors(this Scintilla editor, Dictionary <int, List <string> > errors) { // // Add error annotations to the line. For more info on annotations in the scintilla editor check // http://www.scintilla.org/ScintillaDoc.html#Annotations // foreach (int line in errors.Keys) { // // Join all the errors on one line with a \n. The editor will display each annotation on // a seperate line. // editor.AddAnnotation(line, string.Join("\n", errors[line].ToArray())); editor.SetAnnotationStyle(line, 12); } editor.SetAnnotationVisible(AnnotationVisible.Boxed); }