2008-09-03 107 views

回答

7

ICSharpCode.TextEditor是免費的,相當穩定。
至於商業解決方案Actipro的SyntaxEditor可能是一個最好的選擇

+0

SnippetCompiler http://www.sliver.com/dotnet/SnippetCompiler/也使用ActiPro作爲它的編輯器。 – 2008-09-07 17:22:23

+0

順便說一句,如果有人奇怪,ActiPro不支持客戶端配置文件。 – 2011-02-25 16:28:54

3

試用ScintillaNET這是各地優秀Scintilla控制一個.NET的WinForms包裝。 Scintilla本身是一個免費的源代碼編輯器組件,它非常可定製,並且具有您要求的所有功能。請參閱here獲取屏幕截圖。

4

與Scintilla.Net相比,增強ICSharpCode.TextEditor是微不足道的。 ICSharpCode.TextEditor的另一個巨大優勢是可以自定義/構建自己的語法高亮顯示,例如:https://github.com/icsharpcode/SharpDevelop/wiki/Syntax-highlighting

但ICSharpCode.TextEditor並不穩定,它充滿了AccessViolations:https://www.google.com.au/search?q=icsharpcode.texteditor+accessviolationexception

你可以看到這些AccessViolations第一手通過下載: http://www.codeproject.com/Articles/30936/Using-ICSharpCode-TextEditor

此版本在GitHub上的表現更好的WinForms,但在VSTO它仍然尖叫AccessViolations: https://github.com/KindDragon/ICSharpCode.TextEditor

DigitalRune's version of the ICsharp.TextEditor

我推薦最新的WPF實現:ICSharp.AvalonEdit

如果您需要託管在此的WinForms WPF控件:

public Form1() 
{ 
InitializeComponent(); 
ICSharpCode.AvalonEdit.TextEditor te = new ICSharpCode.AvalonEdit.TextEditor(); 
ElementHost host = new ElementHost(); 
host.Size = new Size(200, 100); 
host.Location = new Point(100, 100); 
host.Child = te; 
this.Controls.Add(host); 
} 


一些商業的,我碰到(注意我不是在與這些公司下屬): http://www.actiprosoftware.com/products/controls/windowsforms/syntaxeditor http://www.qwhale.net/products/editor.htm