Scintilla自定义语法高亮不起作用

时间:2010-06-13 01:06:27

标签: c# .net scintilla

我有一个用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中的

。 (代码不适合这里。)有人可以告诉我为什么这不起作用吗?

1 个答案:

答案 0 :(得分:0)

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

相关问题