Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

docs: Use `json` to fix syntax highlighting (#17884)

Finn Evers22db569adf5f
diff --git a/docs/src/configuring-zed.md b/docs/src/configuring-zed.md
index 1c4aee533d1..d677b082009 100644
--- a/docs/src/configuring-zed.md
+++ b/docs/src/configuring-zed.md
@@ -1179,7 +1179,7 @@ Or to set a `socks5` proxy:
- Setting: `search`
- Default:
-```
+```json
"search": {
"whole_word": false,
"case_sensitive": false,
@@ -1516,14 +1516,14 @@ The name of any font family installed on the user's system
See Buffer Font Features
-```jsonc
+```json
{
"terminal": {
"font_features": {
- "calt": false,
+ "calt": false
// See Buffer Font Features for more features
- },
- },
+ }
+ }
}
```
@@ -1537,33 +1537,33 @@ See Buffer Font Features
1. Use a line height that's `comfortable` for reading, 1.618. (default)
-```jsonc
+```json
{
"terminal": {
- "line_height": "comfortable",
- },
+ "line_height": "comfortable"
+ }
}
```
2. Use a `standard` line height, 1.3. This option is useful for TUIs, particularly if they use box characters
-```jsonc
+```json
{
"terminal": {
- "line_height": "standard",
- },
+ "line_height": "standard"
+ }
}
```
3. Use a custom line height.
-```jsonc
+```json
{
"terminal": {
"line_height": {
- "custom": 2,
- },
- },
+ "custom": 2
+ }
+ }
}
```
diff --git a/docs/src/languages/csharp.md b/docs/src/languages/csharp.md
index 27d758e2fc9..bf3b793c34f 100644
--- a/docs/src/languages/csharp.md
+++ b/docs/src/languages/csharp.md
@@ -11,15 +11,15 @@ C# support is available through the [C# extension](https://github.com/zed-indust
The `OmniSharp` binary can be configured in a Zed settings file with:
-```jsonc
+```json
{
"lsp": {
"omnisharp": {
"binary": {
"path": "/path/to/OmniSharp",
- "args": ["optional", "additional", "args", "-lsp"],
- },
- },
- },
+ "args": ["optional", "additional", "args", "-lsp"]
+ }
+ }
+ }
}
```
diff --git a/docs/src/languages/typescript.md b/docs/src/languages/typescript.md
index bfe63c5b2c1..feb7d76622f 100644
--- a/docs/src/languages/typescript.md
+++ b/docs/src/languages/typescript.md
@@ -33,14 +33,14 @@ You can configure the use of [typescript-language-server](https://github.com/typ
Prettier will also be used for TypeScript files by default. To disable this:
-```jsonc
+```json
{
"languages": {
"TypeScript": {
- "prettier": { "allowed": false },
- },
+ "prettier": { "allowed": false }
+ }
//...
- },
+ }
}
```