<p></p>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/techee/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/techee">@techee</a></p>
<p>I opened a similar issue at <a href="https://github.com/geany/geany/issues/2946" data-hovercard-type="issue" data-hovercard-url="/geany/geany/issues/2946/hovercard">geany/#2946</a>.  I was informed that the feature might be a better fit with one of the project-related plugins.  Since the Project Organizer already has some file extension-related settings, setting filetype for ambiguous header files may be within its scope.</p>
<p>The issue is that <code>.h</code> files are ambiguous with respect to C and C++.  Identifying the right type most visibly affects syntax highlighting.  But it may also affect whether class structures and other symbols are correctly identified.</p>
<ol>
<li>
<p>Many header files have corresponding source files.  When a pair is found, the header type can be changed if needed.</p>
</li>
<li>
<p>Projects may have sufficient information about file locations to find related files in separate directories?</p>
</li>
<li>
<p>If pairing files is too troublesome, or wasteful of cpu cycles, whichever language predominates the project could be used.</p>
</li>
<li>
<p>The project organizer could have a setting that identifies the main project language.  Ambiguous header files could then be set accordingly.</p>
</li>
</ol>
<p>What do you think?  Any other ideas?</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-plugins/issues/1121">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ5RRYAVLEFLCU5NYZTUHL27JANCNFSM5GE7YQPA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJ3SOGH3WDO5NERJPH3UHL27JA5CNFSM5GE7YQPKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4PKLX4ZQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/issues/1121",
"url": "https://github.com/geany/geany-plugins/issues/1121",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>