Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: vdm on June 18, 2013, 12:44:46 am

Title: How to add files with non-standard extensions to the directory named Sources
Post by: vdm on June 18, 2013, 12:44:46 am
In my CodeBlocks Editor configurtion: Settings -> Editor -> Code completion -> C/C++ parser (adv.) i have added additional file extension *.pc to be parsed as a source file. Now this string looks like this: c,cpp,cxx,cc,c++,pc I have also added extension to the Syntax highlighting and this strings looks like this: *.c,*.cpp,*.cc,*.cxx,*.h,*.hpp,*.hh,*.hxx,*.inl,*.ipp,*.tcc,*.pc

The problem is that all *.pc files are separated from the *.c and *.cpp files and they are shown in the directory with name "Others". Is it possible to configure codeblocks editor to show *.c, *.cpp and *.pc files together in one directory named "Sources"?
Title: Re: How to add files with non-standard extensions to the directory named Sources
Post by: oBFusCATed on June 18, 2013, 01:24:42 am
Project -> Project tree -> Edit file types and categories
Title: Re: How to add files with non-standard extensions to the directory named Sources
Post by: vdm on June 18, 2013, 02:00:23 am
Thank you. :)
Title: Re: How to add files with non-standard extensions to the directory named Sources
Post by: sauphy on March 26, 2015, 05:47:10 pm
Hi !

In relation with this topic, i've done the same thing for the extension ".edp" but i wonder how to have colors now ?

When i write a C/C++ file, there are colors(highlighting) and for ".edp" files, what can i do ?

thank you !