I really need a lot more than Pelles Edit displays i.e 20 colors, so i tried to integreat part of your " Pelles C_Parser and RTF " by getteing handle of Pelles Editor
/* Get window handle of the active MDI document */
hEdit = AddIn_GetActiveDocument(g_hwndMain);
then changing it's callback function as shown in your example "InsertC2RTF function".
it compiled okay and when tested all the text appeares in black color.
hope it is clear now , and thanks again for your work, l learned a lot from it.