.h Header C
Testo e codice sorgente
| Tipo MIME | text/x-chdr |
|---|---|
| Descrizione | Header C |
| Categoria | Testo e codice sorgente |
| Basato su | text/x-csrc |
Domande frequenti
Che cos’è un file .h?
Un file .h è un formato di tipo «Header C» (tipo MIME text/x-chdr).
Come apro un file .h?
Con qualsiasi editor di testo: Notepad++, Visual Studio Code, oppure gedit e vim su Linux. Il file contiene testo leggibile, eventualmente codice sorgente o configurazione.
Come si riconosce un vero file .h?
Per questo formato non è registrata una firma fissa all’inizio del file; viene riconosciuto soprattutto dall’estensione. Su Linux e macOS, file --mime-type example.h mostra il tipo presunto.
Su quale formato si basa .h?
Tecnicamente un file .h è un sottotipo di «Codice sorgente C» (text/x-csrc), quindi i programmi per quel formato di base spesso riescono a leggerlo.
Quale tipo MIME corrisponde a .h?
Il tipo MIME è text/x-chdr. Nel server web Apache: AddType text/x-chdr .h; in nginx: types { text/x-chdr h; }.