.sgm SGML document
Text & source code
| MIME type | text/sgml |
|---|---|
| Description | SGML document |
| Acronym | SGML – Standard Generalized Markup Language |
| Category | Text & source code |
| Based on | text/plain |
| Other extensions | .sgml |
Frequently asked questions
What is a .sgm file?
A .sgm file is a “SGML document” (MIME type text/sgml). SGML stands for Standard Generalized Markup Language.
How do I open a .sgm 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 .sgm 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.sgm shows the guessed type.
Which format is .sgm based on?
Technically a .sgm file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.
Which MIME type belongs to .sgm?
The MIME type is text/sgml. In the Apache web server: AddType text/sgml .sgm; in nginx: types { text/sgml sgm; }.