News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Objective C mm file type handling

Started by Napoleon, October 03, 2015, 03:01:01 PM

Previous topic - Next topic

Napoleon

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

oBFusCATed

Project -> Project tree -> Edit file types and categories
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Napoleon

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.