J'ai un contrôle Scintilla que je crée en C#, et la coloration syntaxique ne fonctionne pas. Il définit la police correctement qui me dit que le fichier est en cours de chargement, mais la mise en évidence de la syntaxe ne fonctionne pas du tout:La coloration syntaxique personnalisée de Scintilla ne fonctionne pas
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;
et le fichier de configuration est la suivante:
dans langs.xml. (Le code ne rentrera pas ici.) Quelqu'un peut-il me dire pourquoi cela ne fonctionne pas?