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

Support syntax highlighting in Markdown fenced code blocks #154

Open
TUSF opened this issue Nov 11, 2023 · 1 comment
Open

Support syntax highlighting in Markdown fenced code blocks #154

TUSF opened this issue Nov 11, 2023 · 1 comment

Comments

@TUSF
Copy link

TUSF commented Nov 11, 2023

Currently, if you have a Markdown file with:

```zig
// some code
```

VSCode won't know how to highlight the block even with the extension, neither in-editor, nor in preview.

Taking a look over at this page:

To implement such support for a language, typically, two kinds of TextMate language grammars are needed: One defines language grammars for the language; the other provides scope redirection. Following TextMate's naming conventions is important for them.

As for the preview, that uses highlight.js, and would probably require a plugin of such to be inserted into the rendered HTML? Dunno if that's possible.

@Vexu
Copy link
Member

Vexu commented Nov 11, 2023

This was previously implemented in #66 but was reverted for breaking syntax highlighting in general #69

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

No branches or pull requests

2 participants