2010-06-13 104 views
0

我有一个在C#中创建的闪烁控件,并且语法突出显示不起作用。它设置正确的字体,它告诉我,该文件被加载,但语法高亮并不在所有的工作:闪烁定制语法突出显示不起作用

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。 (代码不适合在这里。)有人可以告诉我为什么这不起作用吗?

回答

0

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