Custom highlight with ScintillaNET

bamse111

New Member
in my winforms application I would create a custom syntax highlight, so I made this xml:\[code\]<ScintillaNET> <Language Name="default"> <Styles> <Style Name="Default" FontName="Consolas"/> </Styles> </Language> <Language Name="customSql"> <Lexer LineCommentPrefix="--" StreamCommentPrefix="/* " StreamCommentSuffix=" /*" LexerName="customSql" > <Keywords List="0"> Data Source Initial Catalog User Id Password Database Server Trusted_Connection Integrated Security Network Library User Instance AttachDbFilename Failover Partner Asynchronous Processing Uid Pwd Provider SSPI </Keywords> </Lexer> <Styles> <Sytle Name="CHARACTER" ForeColor="Black"/> <Sytle Name="NUMBER" ForeColor="Red" /> </Styles> </Language></ScintillaNET>\[/code\]Looks fine for me. In my application I set the language and further properties as:\[code\]myC.ConfigurationManager.Language = "customSql";myC.ConfigurationManager.CustomLocation = Global.Path + @"Resources\ScintillaNET.xml";myC.ConfigurationManager.Configure();\[/code\]I cannot figure why this still doesn't work. I have no exception, simply the text remain black. Any hints?
 
Back
Top