Skip to content

Languages

Configuration for languages that may be used by competitors. We have a number of built-in languages, but also offer support for adding custom languages.

[languages]
# Enable python3 default
python3 = "*"
# Enable built-in Java 21
java = "21"
# Add custom `ocaml` language type
[languges.ocaml]
build = "ocamlc -o out solution.ml"
run = "./out"
source_file = "solution.ml"
  • python3
  • java
    • versions: 8, 11, 21
  • javascript
  • rust

Custom languages may be specified by using a table instead of the version.

KeyOptionalDescription
buildtrueThe command that will be used to build the solution. This is run in a temporary directory that gets deleted after all tests have run, so extra generated files will be removed.
runfalseThe command that will be used to run the solution. This is run in a temporary directory that gets deleted after all tests have run, so extra generated files will be removed.
source_filefalseName of the file containing the user’s submitted code.
display_nametrueOptional name for this language profile. This will be used in the UI.
syntaxtrueSpecifies which language syntax to highlight with. This is used for languages that aren’t supported by major highlighter libraries.