Pelles C forum

C language => User contributions => Topic started by: Emil_halim on November 16, 2017, 07:18:28 pm

Title: increasing colors number of IDE
Post by: Emil_halim on November 16, 2017, 07:18:28 pm
HI All,

I am working in integrating my project into pelles c IDE , so i need to increase the number of colors those show in IDE editor.

BTW i modefied  CppFile plugin to do my job.

so any help please?
Title: Re: increasing colors number of IDE
Post by: Emil_halim on November 16, 2017, 08:34:21 pm
Hi TimoVJL

Thanks for your reply, I ment that  increasing max number of editor colors. Pelles allows only 8 colors to thr richeditor.

actually I have tried to integrating your example with th cppFile plugin but it does not successful.

So how you can change the Pelles editor on the fly so that we can use more than 8 colors?   
Title: Re: increasing colors number of IDE
Post by: TimoVJL on November 16, 2017, 09:33:27 pm
borrow one of these:
Code: [Select]
//#define ADDIN_COLOR_KEYWORD1 10 // Current debugger line
//#define ADDIN_COLOR_KEYWORD1 11 // Profile lines
#define ADDIN_COLOR_KEYWORD1 12 // File difference
Title: Re: increasing colors number of IDE
Post by: Emil_halim on November 17, 2017, 10:05:47 am

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
Code: [Select]
                /* 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.