<blockquote>
<p>To fix it, you have to go to Tools=>Configuration Files=>filetype_extensions.conf. Then remove *.m from Matlab/Octave=.</p>
</blockquote>
<p>Correct.</p>
<blockquote>
<p>To solve this, you'd have to check the code in the file, which I imagine would be a pain.</p>
</blockquote>
<blockquote>
<p>However, almost every Objective-C file will contain at least one #import or #include. You could probably just check if the file contains this.</p>
</blockquote>
<p>So do C/C++ files.</p>
<blockquote>
<p>I'm not sure which is more popular. If Matlab/Octave is more popular, then maybe it should be ahead of Objective-C files.</p>
</blockquote>
<p>The <code>filetype_extensions.conf</code> is in alphabetical order by filetype name, so <code>M</code>atlab wins over <code>O</code>bjective-C.  Geany devs don't know which is most popular with an individual user, so its alphabetical, bat as you note above you can change it to your preference.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1896#issuecomment-404965642">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ2Pm3v5meWzCH0HN5d873HGpB2Qnks5uGRmVgaJpZM4VPXi-">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ5jrlqopC680YW4lMKA0Z9JPtUtZks5uGRmVgaJpZM4VPXi-.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@elextr in #1896: \u003e To fix it, you have to go to Tools=\u003eConfiguration Files=\u003efiletype_extensions.conf. Then remove *.m from Matlab/Octave=.\r\n\r\nCorrect.\r\n\r\n\u003e To solve this, you'd have to check the code in the file, which I imagine would be a pain.\r\n\r\n\u003e However, almost every Objective-C file will contain at least one #import or #include. You could probably just check if the file contains this.\r\n\r\nSo do C/C++ files.\r\n\r\n\u003e I'm not sure which is more popular. If Matlab/Octave is more popular, then maybe it should be ahead of Objective-C files.\r\n\r\nThe `filetype_extensions.conf` is in alphabetical order by filetype name, so `M`atlab wins over `O`bjective-C.  Geany devs don't know which is most popular with an individual user, so its alphabetical, bat as you note above you can change it to your preference."}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1896#issuecomment-404965642"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/1896#issuecomment-404965642",
"url": "https://github.com/geany/geany/issues/1896#issuecomment-404965642",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Re: [geany/geany] Minor: Objective-C files (*.m) parsed as Matlab/Octave (*.m) (#1896)",
"sections": [
{
"text": "",
"activityTitle": "**elextr**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@elextr",
"facts": [

]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"geany/geany\",\n\"issueId\": 1896,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"geany/geany\",\n\"issueId\": 1896\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany/issues/1896#issuecomment-404965642"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 356350142\n}"
}
],
"themeColor": "26292E"
}
]</script>