Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

wpf

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

like image 443
Malcolm Avatar asked Dec 27 '08 06:12

Malcolm


People also ask

Is it possible to use Windows Forms in a WPF application?

You can use the WindowsFormsHost to add single Forms into an WPF application.

What is the use of code editor window?

A source-code editor is a text editor program designed specifically for editing source code of computer programs. It may be a standalone application or it may be built into an integrated development environment (IDE) or web browser.

Does Visual Studio use WPF?

Windows Presentation Foundation (WPF) in Visual Studio provides developers with a unified programming model for building line-of-business desktop applications on Windows.


2 Answers

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.

like image 102
Kris Erickson Avatar answered Oct 02 '22 13:10

Kris Erickson


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.

like image 29
Andrey Shchekin Avatar answered Oct 02 '22 13:10

Andrey Shchekin