Author Topic: Objective C mm file type handling  (Read 2592 times)

Offline Napoleon

  • Multiple posting newcomer
  • *
  • Posts: 59
Objective C mm file type handling
« 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Objective C mm file type handling
« Reply #1 on: October 03, 2015, 04:02:10 pm »
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!]

Offline Napoleon

  • Multiple posting newcomer
  • *
  • Posts: 59
Re: Objective C mm file type handling
« Reply #2 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.