1. 让其支持中文:

textEditorControl1.Encoding = System.Text.Encoding.Default;

2.  支持指定的语法高亮显示

textEditorControl1.Document.HighlightingStrategy = ICSharpCode.TextEditor.Document.HighlightingStrategyFactory.CreateHighlightingStrategy("C#");

下面的表格显示了它支持的语法,将name列作CreateHighlightingStrategy的参数即可。

ICsharpCode.TextEditor 的用法小窥

相关文章:

  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
  • 2022-01-31
  • 2022-01-01
  • 2021-11-03
  • 2021-06-07
  • 2021-08-30
猜你喜欢
  • 2022-12-23
  • 2021-11-26
  • 2022-01-30
  • 2022-01-19
相关资源
相似解决方案