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