9

I'm currently looking for a Syntax highlighter for a WPF application. A textbox will be available for the user to type into which would hopefully recognise code and highlight syntax accordingly.

I would like to support C# initialy and other languages later.

Duplicate of Question 394751

Community
  • 1
  • 1
Ray Booysen
  • 28,894
  • 13
  • 84
  • 111

2 Answers2

2

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.

Andrey Shchekin
  • 21,101
  • 19
  • 94
  • 162
  • It is in the svn://svnmirror.sharpdevelop.net/sharpdevelop/trunk/SharpDevelop (do not remember the exact path), source only (but very easy to build). – Andrey Shchekin Mar 27 '09 at 15:41
  • It has a handy nuget package as well. I found it extremely easy to integrate into my application (for simply displaying highlighted color in read-only fashion). 2 minute job. – LOAS Sep 25 '12 at 16:49
0

I was looking for the same thing without success. Only solution I found is Actipro's Syntax Highlighter for WinForms that can be hosted in WPF application. AFAIK Actipro is working on WPF version but I don't know if it ready or not

aku
  • 122,288
  • 32
  • 173
  • 203