.for Fortran source code

Text & source code

MIME typetext/x-fortran
DescriptionFortran source code
CategoryText & source code
Based ontext/plain
Other extensions.f, .f90, .f95

Frequently asked questions

What is a .for file?

A .for file is a “Fortran source code” (MIME type text/x-fortran).

How do I open a .for 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 .for 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.for shows the guessed type.

Which format is .for based on?

Technically a .for 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 .for?

The MIME type is text/x-fortran. In the Apache web server: AddType text/x-fortran .for; in nginx: types { text/x-fortran for; }.

Nearby entries