.ml OCaml source code

Text & source code

MIME typetext/x-ocaml
DescriptionOCaml source code
CategoryText & source code
Based ontext/plain
Other extensions.mli

Frequently asked questions

What is a .ml file?

A .ml file is a “OCaml source code” (MIME type text/x-ocaml).

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

Which format is .ml based on?

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

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

Nearby entries