.scala Scala source code

Text & source code

MIME typetext/x-scala
DescriptionScala source code
CategoryText & source code
Based ontext/plain
Other extensions.sc

Frequently asked questions

What is a .scala file?

A .scala file is a “Scala source code” (MIME type text/x-scala).

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

Which format is .scala based on?

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

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

Nearby entries