2010-06-13 101 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

沒關係,我的配置文件出於某種原因是錯誤的。