Author Topic: colors and new extension  (Read 2206 times)

sauphy

  • Guest
colors and new extension
« on: March 26, 2015, 05:57:15 pm »
Hi !

I code ".edp" files but code::blocks doesn't recognize this extension.

Firstly, i'd like to add this extension to code::blocks.

And secondly, i'd like to have colors when i write as in ".c" files.

I precise that when i write ".edp" files, the code is similar to C/C++. (int, for have the same syntax).

thank you for help !
« Last Edit: March 26, 2015, 05:59:20 pm by sauphy »

Offline pirx67

  • Multiple posting newcomer
  • *
  • Posts: 40
Re: colors and new extension
« Reply #1 on: March 26, 2015, 10:28:19 pm »
Ok,

you didn't mention your Code::Blocks version and I have atm. only the 12.11 release at hand.

Open Settings -> Editor. In the left column of the dialog box you can select "Syntax highlighting".
Then you get a drop down box where you can select a language syntax the editor supports.
Select "C/C++". On the right side of it there is a button "Filemasks ..." which lets you edit the
file name pattern that will select "C/C++" mode if it matches (see screen shot).

Hope that helps,
   pirx

PS.: Didn't test with *.edp files. I even don't know what kind of stuff this is.

sauphy

  • Guest
Re: colors and new extension
« Reply #2 on: March 27, 2015, 01:42:17 am »
It does work !

Thank you !