Alex Rivera | Logout

How to show number of a line in a RichTextBox C#

Asked 2010-04-02T14:48:00.903
12

I am making a simple text and script editor with code highlighting. For that I use a RichTextBox. But I don't know how to make it show the lines' numbers on the left side, like in VS or Notepad++. Is there any solution?

Edit
Report

1 Answer

1

Scintilla.Net http://scintillanet.codeplex.com/ could be the most feasible solution for your needs. But for my project I used solution suggested by Cheeso (RichTextBoxEx from XPath visualizer). It's simple and fast enough for not very big documents. All other .net components from the internet were incredibly slow.

answered 2010-10-12T09:31:26.170

Your Answer