Question

Anyone know a code editor I can embed in a WPF window or Windows forms?

I want create my own IDE but I want a code editor that would syntax highlighting.

I want to embed it as a control into a WPF window.

Malcolm

 45  45121  45
1 Jan 1970

Solution

 36

The Sharp Develop IDE has a great code editor that can be used in your programs relatively easily (it does require a little bit of work to figure out how it works, and it doesn't have "plug and play" documentation). If you look at the source for Kaxaml you can see how to embed it in WPF.

2008-12-27

Solution

 27

If you do not mind having no documentation whatsoever, AvalonEdit is a good choice. I am currently using for a project, and it is a great tool. I have not encountered a single bug even in complex scenarios.

You can find its source at svn://svnmirror.sharpdevelop.net/sharpdevelop/trunk/SharpDevelop/src/Libraries/AvalonEdit.

2009-01-18