Languages

File endings in parentheses are not used for determining language.

Code Language Default entry point File endings
ada Ada .adb, .ads
algol68 Algol 68 .a68
apl APL .apl
bash Bash .sh
c C .c
cgmp C with GMP (.c)
cobol COBOL .cob
cpp C++ .cc, .cpp, .cxx, .c++, .C
cppgmp C++ with GMP (.cc, .cpp, .cxx, .c++, .C)
crystal Crystal .cr
csharp C# .cs
d D .d
dart Dart .dart
elixir Elixir .ex
erlang Erlang .erl
forth Forth .fth,. 4th, .forth, .frt, (.fs)
fortran Fortran .f90
fsharp F# .fs
gerbil Gerbil .ss
go Go .go
haskell Haskell .hs
java Java Main .java
javaalgs4 Java with Algs4 Main (.java)
javascript JavaScript main.js .js
julia Julia .jl
kotlin Kotlin MainKt .kt
lisp Common Lisp main.{lisp,cl} .lisp, .cl
lua Lua .lua
modula2 Modula-2 .mod, .def
nim Nim .nim
objectivec Objective-C .m
ocaml OCaml .ml
octave Octave (.m)
odin Odin .odin
pascal Pascal .pas
perl Perl .pm, (.pl)
php PHP main.php .php
prolog Prolog .pl
python2 Python 2 __main__.py (.py), .py2
python3 Python 3 __main__.py .py, .py3
python3numpy Python 3 with NumPy __main__.py (.py, .py3)
racket Racket .rkt
ruby Ruby .rb
rust Rust .rs
scala Scala .scala
simula Simula .sim
smalltalk Smalltalk .st
snobol Snobol .sno
swift Swift .swift
typescript TypeScript .ts
visualbasic Visual Basic .vb
zig Zig .zig