Scintilla custom syntax highlighting not working

Posted by Nilbert on Stack Overflow See other posts from Stack Overflow or by Nilbert
Published on 2010-06-13T01:06:26Z Indexed on 2010/06/13 1:12 UTC
Read the original article Hit count: 475

Filed under:
|
|

I have a Scintilla control that I create in C#, and the syntax highlighting doesn't work. It sets the font correctly which tells me that the file is being loaded, but the syntax highlighting doesn't work at all:

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;

and the configuration file is this:

http://codepad.org/DAjCrlPT

in langs.xml. (The code won't fit here.) Can someone tell me why this is not working?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET