我有一个在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中。(代码不适合这里。)有人能告诉我为什么这个不起作用吗?
发布于 2010-06-13 12:36:37
不要紧,我的配置文件由于某种原因是错误的。
https://stackoverflow.com/questions/3030693
复制相似问题