Beispiel #1
0
		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()));
		}
Beispiel #2
0
        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);
            }
        }
Beispiel #3
0
        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);
            }
        }
Beispiel #4
0
 public void InsertSnippet(Snippet snip)
 {
     InsertSnippet(snip, Math.Min(NativeScintilla.GetCurrentPos(), NativeScintilla.GetAnchor()));
 }