Skip to content

add languages to fenced code blocks in docs - #4227

Open
Andriamanitra wants to merge 1 commit into
micro-editor:masterfrom
Andriamanitra:md-code-blocks
Open

Andriamanitra wants to merge 1 commit into
micro-editor:masterfrom
Andriamanitra:md-code-blocks

Conversation

@Andriamanitra

Copy link
Copy Markdown
Collaborator

Previously the fenced code blocks in the .md files used language tags inconsistently. This adds languages to all of them (except for ones that just contain plaintext list of actions).

Using jsonc for the json snippets that contain comments allows Github to highlight them properly.

closes #2704

@JoeKar

JoeKar commented Sep 15, 2026

Copy link
Copy Markdown
Member

Using jsonc for the json snippets that contain comments allows Github to highlight them properly.

Shouldn't we use jsonc directly for all json blocks, regardless of whether we're already using comments or not?
The advantage of this is that any comments added are displayed correctly without requiring further changes to the fenced code block.

@JoeKar

JoeKar commented Sep 17, 2026

Copy link
Copy Markdown
Member

In runtime/plugins/comment/help/comment.md we still have two json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set json syntax highlighting to jsonc

2 participants