docs: Use json
to fix syntax highlighting (#17884)
This follows up the [issue with mdbook notpeter mentioned](https://github.com/zed-industries/zed/pull/17864#issuecomment-2353089065) by replacing `jsonc` where used in the docs with `json`. Additionally, one missing `json` - highlight was added for the search-section. Release Notes: - N/A
This commit is contained in:
parent
2cae6f3e08
commit
22db569adf
3 changed files with 24 additions and 24 deletions
|
@ -1179,7 +1179,7 @@ Or to set a `socks5` proxy:
|
||||||
- Setting: `search`
|
- Setting: `search`
|
||||||
- Default:
|
- Default:
|
||||||
|
|
||||||
```
|
```json
|
||||||
"search": {
|
"search": {
|
||||||
"whole_word": false,
|
"whole_word": false,
|
||||||
"case_sensitive": false,
|
"case_sensitive": false,
|
||||||
|
@ -1516,14 +1516,14 @@ The name of any font family installed on the user's system
|
||||||
|
|
||||||
See Buffer Font Features
|
See Buffer Font Features
|
||||||
|
|
||||||
```jsonc
|
```json
|
||||||
{
|
{
|
||||||
"terminal": {
|
"terminal": {
|
||||||
"font_features": {
|
"font_features": {
|
||||||
"calt": false,
|
"calt": false
|
||||||
// See Buffer Font Features for more features
|
// 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)
|
1. Use a line height that's `comfortable` for reading, 1.618. (default)
|
||||||
|
|
||||||
```jsonc
|
```json
|
||||||
{
|
{
|
||||||
"terminal": {
|
"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
|
2. Use a `standard` line height, 1.3. This option is useful for TUIs, particularly if they use box characters
|
||||||
|
|
||||||
```jsonc
|
```json
|
||||||
{
|
{
|
||||||
"terminal": {
|
"terminal": {
|
||||||
"line_height": "standard",
|
"line_height": "standard"
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Use a custom line height.
|
3. Use a custom line height.
|
||||||
|
|
||||||
```jsonc
|
```json
|
||||||
{
|
{
|
||||||
"terminal": {
|
"terminal": {
|
||||||
"line_height": {
|
"line_height": {
|
||||||
"custom": 2,
|
"custom": 2
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -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:
|
The `OmniSharp` binary can be configured in a Zed settings file with:
|
||||||
|
|
||||||
```jsonc
|
```json
|
||||||
{
|
{
|
||||||
"lsp": {
|
"lsp": {
|
||||||
"omnisharp": {
|
"omnisharp": {
|
||||||
"binary": {
|
"binary": {
|
||||||
"path": "/path/to/OmniSharp",
|
"path": "/path/to/OmniSharp",
|
||||||
"args": ["optional", "additional", "args", "-lsp"],
|
"args": ["optional", "additional", "args", "-lsp"]
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -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:
|
Prettier will also be used for TypeScript files by default. To disable this:
|
||||||
|
|
||||||
```jsonc
|
```json
|
||||||
{
|
{
|
||||||
"languages": {
|
"languages": {
|
||||||
"TypeScript": {
|
"TypeScript": {
|
||||||
"prettier": { "allowed": false },
|
"prettier": { "allowed": false }
|
||||||
},
|
}
|
||||||
//...
|
//...
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue