Skip to content

Commit ddfcd2f

Browse files
committed
shell → shell-session syntax
These are not shell scripts but rather a shell session
1 parent acfa45c commit ddfcd2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

data/tutorials/platform/1_07_code_formatting.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ Automatic formatting with OCamlFormat requires an `.ocamlformat` configuration f
1414
An empty file is accepted, but since different versions of OCamlFormat will vary in formatting, it
1515
is good practice to specify the version you're using. Running
1616

17-
```shell
17+
```shell-session
1818
$ echo "version = `ocamlformat --version`" > .ocamlformat
1919
```
2020

2121
creates a configuration file for the currently installed version of OCamlFormat.
2222

2323
In addition to editor plugins that use OCamlFormat for automatic code formatting, Dune also offers a command to run OCamlFormat to automatically format all files from your codebase:
2424

25-
```shell
25+
```shell-session
2626
$ opam exec -- dune fmt
27-
```
27+
```

0 commit comments

Comments
 (0)