From 22db569adf5f9bf328a99d7a9a8fed01b5c24b7d Mon Sep 17 00:00:00 2001 From: Finn Evers Date: Mon, 16 Sep 2024 17:04:56 +0200 Subject: [PATCH] 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 --- docs/src/configuring-zed.md | 30 +++++++++++++++--------------- docs/src/languages/csharp.md | 10 +++++----- docs/src/languages/typescript.md | 8 ++++---- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/docs/src/configuring-zed.md b/docs/src/configuring-zed.md index 1c4aee533d..d677b08200 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 27d758e2fc..bf3b793c34 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 bfe63c5b2c..feb7d76622 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 } + } //... - }, + } } ```