.sage SageMath script
Text & source code
| MIME type | text/x-sagemath |
|---|---|
| Description | SageMath script |
| Category | Text & source code |
| Based on | text/x-python |
Frequently asked questions
What is a .sage file?
A .sage file is a “SageMath script” (MIME type text/x-sagemath).
How do I open a .sage 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 .sage 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.sage shows the guessed type.
Which format is .sage based on?
Technically a .sage file is a subtype of “Python script” (text/x-python), so programs for that base format can often read it too.
Which MIME type belongs to .sage?
The MIME type is text/x-sagemath. In the Apache web server: AddType text/x-sagemath .sage; in nginx: types { text/x-sagemath sage; }.