private void txtRegex_ContentChanged(object sender, ContentChangedEventArgs e)
        {
            try
            {
                Dirty = true;
                if (_IsPopupContextActive && e.Text.IndexOf(":") > -1)
                {
                    _currentTextWithActiveIntellisense = txtRegex.Text;

                    _IsPopupContextActive = false;
                    txtRegex.Delete(e.LocationRange);
                    txtRegex.DeleteCharBeforeCaret();
                    string toInsert = e.Text.Split(':')[0].Trim();

                    txtRegex.Insert(toInsert);
                    if (!SetTextSelection(toInsert))
                    {
                        SendKeys.Send("{LEFT}");
                    }
                }
            }
            catch (Exception ee)
            {
            }
        }