AvalonEdit is a WPF-based extensible text editor. While the WPF RichTextBox is quite powerful, you quickly run into its limits when trying to use it as a code editor: it's hard to write efficient syntax highlighting for it, and you cannot really implement features like code folding with the standard RichTextBox. The problem is: the RichTextBox edits a rich document. In contrast, AvalonEdit simply edits text. However, AvalonEdit offers lots of possibilities on how the text document is displayed - so it is much more suitable for a code editor where things like the text color are not controlled by the user, but instead depend on the text (syntax highlighting). AvalonEdit was written for the SharpDevelop IDE. It replaces our old Windows Forms-based text editor (ICSharpCode.TextEditor).
Usage The main class of the editor is T:ICSharpCode.AvalonEdit.TextEditor. You can use it similar to a normal WPF TextBox: ]]>
System requirements AvalonEdit requires the .NET Framework 3.5 SP1 http://www.microsoft.com/downloads/details.aspx?FamilyID=ab99342f-5d1a-413d-8319-81da479ab0d7&DisplayLang=en _blank . For compiling AvalonEdit inside Visual Studio 2008, VS08 SP1 is required. AvalonEdit requires FullTrust and will not run as XBAP.
T:ICSharpCode.AvalonEdit.TextEditor www.avalonedit.net http://www.avalonedit.net _blank www.icsharpcode.net http://www.icsharpcode.net _blank