From 7e12f3778733504a5b33b6b4e37356212fbb440c Mon Sep 17 00:00:00 2001 From: Feihong Hsu Date: Tue, 29 Oct 2024 21:43:27 -0500 Subject: [PATCH] Add links for setup of other editors --- docs/syntaxes.md | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/docs/syntaxes.md b/docs/syntaxes.md index 7b1bb609b..51e582e46 100644 --- a/docs/syntaxes.md +++ b/docs/syntaxes.md @@ -152,14 +152,14 @@ extension](getting-started#editor-integration). ### Reason syntax 1. To enable format-on-save in VS Code, open your [User Settings JSON -file](https://code.visualstudio.com/docs/getstarted/settings#_settingsjson) and -add this snippet: + file](https://code.visualstudio.com/docs/getstarted/settings#_settingsjson) + and add this snippet: - ```json + ```json "[reason]": { "editor.formatOnSave": true }, - ``` + ``` 1. To control how the Reason formatter breaks up long lines, you can also add this snippet: @@ -167,7 +167,7 @@ add this snippet: "ocaml.server.extraEnv": { "REFMT_PRINT_WIDTH": "120" }, - ``` + ``` In the snippet above, the print width is set to 120 characters, but you can use any number you prefer. If you don't set this, the default is 80. @@ -182,14 +182,23 @@ add this snippet: In the snippet above, the print width is set to 120 characters, but you can use any number you prefer. If you don't set this, the default is 80. 1. To enable format-on-save in VS Code, open your [User Settings JSON -file](https://code.visualstudio.com/docs/getstarted/settings#_settingsjson) and -add this snippet: + file](https://code.visualstudio.com/docs/getstarted/settings#_settingsjson) + and add this snippet: - ```json - "[ocaml]": { - "editor.formatOnSave": true - }, - ``` + ```json + "[ocaml]": { + "editor.formatOnSave": true + }, + ``` + +## Other editors + +For Reason syntax, check out [Editor +Plugins](https://reasonml.github.io/docs/en/editor-plugins) page from Reason +documentation. + +For OCaml syntax, check out the [Editor +Setup](https://ocamlverse.net/content/editor_setup.html) page from OCamlverse. ## Formatters