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 defaultpython3 = "*"# Enable built-in Java 21java = "21"# Add custom `ocaml` language type[languges.ocaml]build = "ocamlc -o out solution.ml"run = "./out"source_file = "solution.ml"Built-in Languages
Section titled “Built-in Languages”python3java- versions:
8,11,21
- versions:
javascriptrust
Custom Languages
Section titled “Custom Languages”Custom languages may be specified by using a table instead of the version.
| Key | Optional | Description |
|---|---|---|
build | true | The 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. |
run | false | The 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_file | false | Name of the file containing the user’s submitted code. |
display_name | true | Optional name for this language profile. This will be used in the UI. |
syntax | true | Specifies which language syntax to highlight with. This is used for languages that aren’t supported by major highlighter libraries. |