tags:

views:

4130

answers:

9

Hi

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

+2  A: 

SyntaxEditor from Actipro software (http://www.actiprosoftware.com). It's not going to get easier than that one.

Frans Bouma
Have you seen anything that is free/FOSS?
Jonathan C Dickinson
No, except perhaps the #Develop edit stuff, but it's not as advanced as this one.
Frans Bouma
+11  A: 

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.

Kris Erickson
+4  A: 

Another option is Scintilla.NET (http://www.codeplex.com/ScintillaNET).

It is a .NET 2.0 wrapper around the Scintilla Native Control. We have successfully used to display/edit HLSL, XML, Text, and other internal scripting languages. It is easy to write a language description file for your own language if needed.

I'm currently hosting the WinForms control in our WPF applications. The only difficulty was getting a WPF context menu to activate when clicking within the control; solved it by listening for a MouseRightButtonDown event on the WinFormsHost and then setting the ContextMenu visible (ContextMenu.IsOpen = true) :/

I have been in contact with Actipro Software re: SyntaxEditor and the WPF version is being actively developed and will available soon. For the time-being we will continue to use Scintilla.NET

Dennis Roche
+2  A: 

Maybe you interested in AqiStar.TextBox (www.aqistar.com).

It's a syntax highlighting text editor control targetting WPF, fast and easy to use but not free.

+11  A: 

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.

Andrey Shchekin
Andrey, where is the source code for AvalonEdit? I browsed sharpdevelop.net but didn't find any links to AE's source code
aku
You can find it at svn://svnmirror.sharpdevelop.net/sharpdevelop/trunk/SharpDevelop/src/Libraries/AvalonEdit. I am not sure if there is a http browser for sharpdevelop sources, but TortoiseSVN works just fine.
Andrey Shchekin
+3  A: 

Actipro SyntaxEditor for WPF's first public beta is now live (www.actiprosoftware.com/Products/DotNet/WPF/SyntaxEditor/Default.aspx). It has a very feature-rich base framework that we've put months of development time into based on our years of experience in this area. More features will be added soon but in the meantime check out the 40+ samples we offer. Works in XBAPs too!

I'll vouch for that. We use it.
Mr. T.
We're also using it successfully in a WPF app. It's out of beta now, I think.One nice potential benefit is that code written for it will be compatible with their Silverlight version which is now available. Imagine your IDE in a browser window!
Mike Schenk
+1  A: 

Try http://mycodelog.com/2010/04/01/xml-editor/

Ali B
+2  A: 

My favorite is Actipro The free ones are: http://www.codeproject.com/KB/library/storm.aspx http://www.codeproject.com/KB/edit/AvalonEdit.aspx

Mr. T.
+1  A: 

I know two available: qwhale editor

and sync fusion

both are .net controls.

boreas