WPF RichTextBox to create editor with line numbers

John Alden picture John Alden · Feb 19, 2009 · Viewed 9.2k times · Source

I'm creating a text editor for a domain specific language. I'm using the WPF RichTextBox as the basic control. I don't know how to gracefully include line numbering. Does anyone know of any examples?

Answer

Dave Clemmer picture Dave Clemmer · Sep 20, 2011

AvalonEdit is a good one, and it's open source. I think it has nearly all of the features of the Aqistar control such as syntax highlighting and folding. Ease to configure and use. Further details can be found here. enter image description here