【问题标题】:Scintilla custom syntax highlighting not working [closed]闪烁自定义语法突出显示不起作用[关闭]
【发布时间】:2010-06-13 01:06:26
【问题描述】:

我有一个用 C# 创建的 Scintilla 控件,但语法突出显示不起作用。它正确设置了字体,告诉我正在加载文件,但语法突出显示根本不起作用:

Scintilla r = new Scintilla();
r.Dock = DockStyle.Fill;
r.ConfigurationManager.IsUserEnabled = true;
r.ConfigurationManager.CustomLocation = "langs.xml";
r.ConfigurationManager.Language = "rb";
r.Margins[0].Width = 40;
r.Indentation.UseTabs = true;
r.Indentation.IndentWidth = 4;
r.Indentation.ShowGuides = true;
r.Indentation.TabIndents = true;
r.Indentation.TabWidth = 4;
r.Indentation.SmartIndentType = SmartIndent.Simple;

配置文件是这样的:

http://codepad.org/DAjCrlPT

在 langs.xml 中。 (代码不适合这里。)有人能告诉我为什么这不起作用吗?

【问题讨论】:

    标签: c# .net scintilla


    【解决方案1】:

    没关系,我的配置文件由于某种原因出错了。

    【讨论】:

      猜你喜欢
      • 2019-12-24
      • 2016-05-13
      • 2016-11-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多