If you look at the maxide2 version of code in the CVS on SourceForge, you can find all the code to highlight inside the file "editor.bmx". You will need to create a new type called TBPlusCodePanel (or similar) by copying the BMX one, and then amend ccode to create that new type instead of TBMXCodePanel when opening a bplus file. You can then amend the code in your new type to work with bplus (or b3d for that matter).
We do have some code for a proper "lexer", but using that will take a fair bit of effort I suspect...
|