public void InsertSnippet(string shortcut) { Snippet snip; if (!_list.TryGetValue(shortcut, out snip)) { // Not a match. Buh-bye return; } InsertSnippet(snip, Math.Min(NativeScintilla.GetCurrentPos(), NativeScintilla.GetAnchor())); }
public Range FindPrevious(Regex findExpression, bool wrap) { Range r = Find(0, NativeScintilla.GetAnchor(), findExpression, true); if (r != null) { return(r); } else if (wrap) { return(Find(NativeScintilla.GetCurrentPos(), NativeScintilla.GetTextLength(), findExpression, true)); } else { return(null); } }
public Range FindPrevious(string searchString, bool wrap, SearchFlags flags) { Range r = Find(NativeScintilla.GetAnchor(), 0, searchString, flags); if (r != null) { return(r); } else if (wrap) { return(Find(NativeScintilla.GetTextLength(), NativeScintilla.GetCurrentPos(), searchString, flags)); } else { return(null); } }
public void InsertSnippet(Snippet snip) { InsertSnippet(snip, Math.Min(NativeScintilla.GetCurrentPos(), NativeScintilla.GetAnchor())); }