免费语法高亮.NET编辑器编辑器、语法、高亮、NET

2023-09-03 11:07:46 作者:心若一动,泪便倾城

我需要将一个语法高亮显示的编辑器控制到我的应用程序。这是需要控制是免费的,原生的.NET code只所以Scintilla.NET控制是不可行的。这样做的原因是因为它是一个ClickOnce应用程序

I need incorporate a syntax highlighting editor control into my application. It is required that the control be free and native .NET code only so the Scintilla.NET control is not feasible. The reason for this is because it is a ClickOnce application.

我想使用的WinForms或WPF的答案。它不必来自相同的厂商。它需要基本上都支持语法高亮,行号,并相当快的大文件多达10万,并且必须是免费的!

I would like answers that use WinForms or WPF. It doesn't have to be from the same vendor. It needs to basically support syntax highlighting, line numbers, and be reasonably fast for large files up to 100,000 and MUST be FREE!

据我所知,这个问题已经被问过,因为他们通常糊涂与需要使用费或不免费或提Scintilla.NET控制,不是本地.NET code商业级控制。

I understand that this question has been asked before for they are usually muddled with commercial controls that require royalties or are not free or mention the Scintilla.NET control which is not native .NET code.

推荐答案

您可能想看看这是专为MonoDevelop的2文本控件会帮助你。其集成的,和你需要看看是否许可适合你。

You may want to see if the text control that was built for MonoDevelop 2 will help you out. Its integrated, and you'll need to see if the licensing suits you.

它使用GTK +,虽然如此,你很可能需要大约有GTK +的GtkSharp包装。但是,这将有可能在理论上用它作为基础的东西,坐在你编程的GUI API系统之上。

It does use GTK+, though, so you'd likely need to have the GtkSharp wrapper around GTK+. But it would be possible in theory to use it as a basis for something that sits on top of the GUI API system you're programming for.

ETA :您可能也想看看在SharpDevelop的使用code,它运行在Windows上。有两个项目之间共同的程序员,也是如此。

ETA: You may also want to check out the code used in SharpDevelop, which runs on Windows. There are programmers in common between the two projects, as well.

链接:       SharpDevelop的,的 MonoDevelop的

Links: SharpDevelop, MonoDevelop