private static void SortCaseInsensitive() { try { var textlist = GetTextFromEditorAsDictionary(); textlist.Sort(); editor.ClearAll(); foreach (var item in textlist) { AddTextToEditor(item.Item2); } } catch (Exception ex) { Fail(ex); } }
internal static void FormatText() { var textLength = editor.GetTextLength(); var documentText = editor.GetText(textLength); var splitText = documentText.Split('|'); var sb = new StringBuilder(); foreach (string text in splitText) { sb.AppendLine(text); } editor.ClearAll(); editor.SetText(sb.ToString()); }