jacobslusser / ScintillaNET

A Windows Forms control, wrapper, and bindings for the Scintilla text editor.
MIT License
964 stars 242 forks source link

XML lexer has issues with keywords #496

Open PaulBlythe opened 3 years ago

PaulBlythe commented 3 years ago

If you SetKeywords in channel 0 and 1 , the lexer stops working and you just get the default fore colour

If you SetKeywords on a higher channel, I tried 4 , the first char in the file becomes red , but the rest of the file is OK

Obviously none of the keywords specified are rendered in a new colour

Is their some limit on keywords per lexer?

VPKSoft commented 3 years ago

I made a NuGet for applying predefined lexers for ScintillaNET (ScintillaLexers). Have a look for an example, at leas the XML looks fine: image