PavelTorgashov / FastColoredTextBox

Fast Colored TextBox for Syntax Highlighting. The text editor component for .NET.
Other
1.22k stars 465 forks source link

Highlight line where error in code #118

Open RizwanSaeedi opened 7 years ago

RizwanSaeedi commented 7 years ago

how to highlight line number where there is error in code . highlight like mark selected line . with red color manually

PavelTorgashov commented 7 years ago

Like marker sample - handle PaintLine event:

        private void fctb_PaintLine(object sender, PaintLineEventArgs e)
        {
            if (e.LineIndex == 2)
                e.Graphics.FillRectangle(Brushes.MistyRose, 0, e.LineRect.Top, fctb.LeftIndent - 10, e.LineRect.Height);
        }
RizwanSaeedi commented 7 years ago

Solved . Thanks