I wonder why the highly didn't remain and something came to mind so I went to Syntax highlighting (in Configure editor) and after choosing the right syntax (drop-down) in Syntax highlighting for:, I click to the button right next Filemasks... and added the new type.
File associations, file masks, file types and MIME types are different things:
1.) Associations are registered in the
Registry (that's why its Windows only) to enable that when you double click on a file with this extensions C::B is being opened - standard practice on windows. These are hard-coded and should not be too much anyways btw..
2.) File masks is to associate specific file extension with a
syntax colour scheme used within the editor for correct syntax highlighting, via the menu Settings -> Editor -> Syntax higlighting, for every language that C::B supports syntax highlighting for.
3.) "File type and categories" (reached via menu Project - "Project tree" -> Edit file types and categories) enables you to adjust
grouping in the project tree of the files as you like in the project tree, including (for example) to create a completely new group.
4.) MIME types (reached via menu Settings - Environment - File extension handling) allows you to associate file typed with
specific procedures to open them at runtime within C::B only. For example, you can "tell" C::B here, that a specific script type like Python "
*.py" shall be opened INSIDE a new Code::Blocks editor window, or EXTERNAL with a specific editor.
Feel free to put this on the WiKi btw...