<p>Seems kind of arbitrary to use <code>.hpp</code> over the number of other extensions people use for C++ headers. Likely <code>.h</code> was chosen because it's the most common extension for C++ headers, at least historically.</p>

<p>If you remove <a href="https://github.com/geany/geany/blob/master/data/filetype_extensions.conf#L13">the <code>*.h</code> from the <code>C</code> key in <code>filetype_extensions.conf</code></a> it will treat them as C++ files and you'll get proper highlighting and symbols for <code>.h</code> files. I do this here and it works great for both C and C++ headers, except that it wrongly highlights <code>namespace</code> and <code>class</code> and such in C headers, but I never use those in plain C headers anyway.</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 or <a href="https://github.com/geany/geany/pull/999#issuecomment-210880521">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ5ZHbwC8DTctgqf4oc1wwzPP-7Jkks5p4TrcgaJpZM4II_wQ.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/999#issuecomment-210880521"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>