.hp C++ header
Text & source code
| MIME type | text/x-c++hdr |
|---|---|
| Description | C++ header |
| Category | Text & source code |
| Based on | text/x-chdr |
| Other extensions | .h++, .hh, .hpp, .hxx |
Frequently asked questions
What is a .hp file?
A .hp file is a “C++ header” (MIME type text/x-c++hdr).
How do I open a .hp file?
With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.
How can you tell a genuine .hp file?
No fixed signature at the start of the file is registered for this format; it is recognised mainly by its extension. On Linux and macOS, file --mime-type example.hp shows the guessed type.
Which format is .hp based on?
Technically a .hp file is a subtype of “C header” (text/x-chdr), so programs for that base format can often read it too.
Which MIME type belongs to .hp?
The MIME type is text/x-c++hdr. In the Apache web server: AddType text/x-c++hdr .hp; in nginx: types { text/x-c++hdr hp; }.