NO

Author Topic: increasing colors number of IDE  (Read 4829 times)

Emil_halim

  • Guest
increasing colors number of IDE
« 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?

Emil_halim

  • Guest
Re: increasing colors number of IDE
« Reply #1 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?   
« Last Edit: November 16, 2017, 08:55:30 PM by Emil_halim »

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 2115
Re: increasing colors number of IDE
« Reply #2 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
May the source be with you

Emil_halim

  • Guest
Re: increasing colors number of IDE
« Reply #3 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.