Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax highlighting for markdown fenced code blocks #5761

Closed
1 task done
Tracked by #5346
isidornygren opened this issue Oct 18, 2022 · 1 comment
Closed
1 task done
Tracked by #5346

Syntax highlighting for markdown fenced code blocks #5761

isidornygren opened this issue Oct 18, 2022 · 1 comment
Assignees
Labels
feature [core label] language An umbrella label for all programming languages syntax behaviors markdown Markdown markup support

Comments

@isidornygren
Copy link

Check for existing issues

  • Completed

Is your feature request related to a problem?

Fenced blocks in markdown does not seem to be highlighted, this might be due to them being part of the extended syntax and therefore not considered standard, or maybe it's just not implemented.
The extended syntax for markdown supports fenced code blocks which in my personal experience are widely used, and it would be great to have syntax highlighting for code blocks when working with things like readmes or data for static site builders.

Describe the solution you'd like

Render fenced code blocks with syntax highlighting based on the language defined after the first set of backticks (as defined in the markdown extended syntax), e.g:

```typescript
const some = "thing"; 
```

If applicable, add mockups / screenshots to help present your vision of the feature

How it currently looks in zed 0.60.3
Screenshot 2022-10-18 at 11 36 31
How it looks like in vscode
Screenshot 2022-10-18 at 11 36 44

@JosephTLyons
Copy link
Collaborator

Thank @isidornygren, this would be a fantastic addition.

@JosephTLyons JosephTLyons added markdown Markdown markup support language An umbrella label for all programming languages syntax behaviors and removed triage labels Oct 18, 2022
@as-cii as-cii self-assigned this Jan 20, 2023
@JosephTLyons JosephTLyons transferred this issue from zed-industries/community Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature [core label] language An umbrella label for all programming languages syntax behaviors markdown Markdown markup support
Projects
None yet
Development

No branches or pull requests

3 participants