【问题标题】:Custom Syntax Highlighting in ICSharp.texteditorICSharp.texteditor 中的自定义语法突出显示
【发布时间】:2013-09-26 11:34:18
【问题描述】:

我正在尝试制作语言 PAWN 的 IDE。

我在 C# 中使用 ICSharp 进行语法高亮。由于 scintilla 中还没有 PAWN,有人可以告诉我如何创建自定义语法突出显示吗?

这里是关键字

assert char #assert const break defined #defined enum case sizeof #else forward continue state #elseif native default tagof #emit new do #endif operator else #endinput public exit #endscript static for #error stock goto #file if #if return #include sleep #line state #pragma switch #section while #tryinclude #undef

【问题讨论】:

    标签: .net vb.net icsharpcode


    【解决方案1】:

    您应该首先检查 jEdit 是否支持该语言,

    http://www.lextm.com/2012/01/tritonmate-words-syntax-highlighting-for-smimib/

    如果 jEdit 支持它,您可以轻松地将 jEdit 语法文件转换为 SharpDevelop TextEditor 期望的样式。

    如果jEdit中没有的话,自己按照自己写也不是太难

    https://github.com/icsharpcode/SharpDevelop/wiki/Syntax-highlighting

    【讨论】:

      猜你喜欢
      • 2013-05-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-04
      • 1970-01-01
      • 2013-08-07
      • 1970-01-01
      相关资源
      最近更新 更多