cbpporter Messages: 1428 Registered: September 2007
Ultimate Contributor
So I registered my extension using RegisterCSyntax, added a new entry to the enum and added keywords and identifier names with LoadSyntax within CSyntax::InitKeywords() and...
somehow magically all my sources are highlighted with the proper keywords! I have no idea how it matches the registered extension with the keywords set, but I suspect that out of coincidence the indexes all match up...
I wont be able to use CSyntax forever so it ma be time to inherit form it.
And I need to figure out how colors are loaded, because me using code to overwrite colors only works one time because of the ONCELOCK and then when switching tabs the colors are restored to default.