Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Napoleon on October 03, 2015, 03:01:01 pm

Title: Objective C mm file type handling
Post by: Napoleon on October 03, 2015, 03:01:01 pm
I have various projects with .mm extensions (C++ for Obj-C) but Code::Blocks groups them under the "Others" heading in the source tree.  Is there a way of making Code::Blocks recognise them as a source files?

Cheers,
Nap
Title: Re: Objective C mm file type handling
Post by: oBFusCATed on October 03, 2015, 04:02:10 pm
Project -> Project tree -> Edit file types and categories
Title: Re: Objective C mm file type handling
Post by: Napoleon on October 04, 2015, 04:34:17 am
Thanks oBFusCATed, I knew CB had the feature somewhere.

On a related issue, syntax highlighting & comment handling works fine for the mm extension automatically.
Using Settings -> Editor -> Syntax Highlighting, and then selecting a file type from the "Syntax highlighting for:" drop-down (to select a profile; Bash in my case), I was able to add my own file type (*.awk) to the list by clicking the <Filemasks...> button and editing the mask.

Very nice.