[Github-comments] [geany/geany] .h -> .hpp in classbuilder (#999)

Matthew Brush notifications at xxxxx
Sat Apr 16 19:39:08 UTC 2016


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

If you remove [the `*.h` from the `C` key in `filetype_extensions.conf`](https://github.com/geany/geany/blob/master/data/filetype_extensions.conf#L13) it will treat them as C++ files and you'll get proper highlighting and symbols for `.h` files. I do this here and it works great for both C and C++ headers, except that it wrongly highlights `namespace` and `class` and such in C headers, but I never use those in plain C headers anyway.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/999#issuecomment-210880521
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160416/128cbd54/attachment.html>


More information about the Github-comments mailing list