Syntax Highlighter for WPF

后端 未结 4 891
长情又很酷
长情又很酷 2021-01-05 09:43

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 highli

相关标签:
4条回答
  • 2021-01-05 10:14

    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.

    0 讨论(0)
  • 2021-01-05 10:15

    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

    0 讨论(0)
  • 2021-01-05 10:17

    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

    0 讨论(0)
  • 2021-01-05 10:24

    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.

    0 讨论(0)
提交回复
热议问题