예제 #1
0
        public void OnBeforeTextDelete(object sender, BeforeModificationEventArgs e)
        {
            m_NLEvent.Set((Scintilla)sender, e);
            if (!m_NLEvent.isEnable)
            {
                return;
            }
            Scintilla        ed  = (Scintilla)sender;
            NewLineEventArgs nlE = new NewLineEventArgs(ed, e, m_NLEvent, NewLineEventArgs.DELETE);

            this.NewLineChanged(ed, nlE);
            UtilMarker.DeletRightMarginMarker(ed);
            this.SideMarginPaint(ed, new EventArgs());
        }
예제 #2
0
        public void OnTextInserted(object sender, ModificationEventArgs e)
        {
            Scintilla ed = (Scintilla)sender;

            if (isFileLoading || e.LinesAdded == 0 || !m_NLEvent.isEnable)
            {
                return;
            }
            NewLineEventArgs nlE = new NewLineEventArgs(ed, e, m_NLEvent, NewLineEventArgs.INSERT);

            this.NewLineChanged(ed, nlE);
            UtilMarker.DeletRightMarginMarker(ed);
            this.SideMarginPaint(ed, new EventArgs());
        }