Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Syntax Highlighter for WPF

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

like image 473
Ray Booysen Avatar asked Jan 18 '09 09:01

Ray Booysen


2 Answers

I think this question has your answer.

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

Or you can write one yourself: http://blogs.microsoft.co.il/blogs/tamir/archive/2006/12/14/RichTextBox-syntax-highlighting.aspx

like image 127
Remco Eissing Avatar answered Nov 12 '22 05:11

Remco Eissing


Some time ago i've found this blog post with a tutorial on how to create a custom syntax highlight control from a RichTextBox. Maybe it could be usefull for you too.

like image 21
Stefano Driussi Avatar answered Nov 12 '22 05:11

Stefano Driussi