vscode-zig icon indicating copy to clipboard operation
vscode-zig copied to clipboard

Support syntax highlighting in Markdown fenced code blocks

Open TUSF opened this issue 2 years ago • 1 comments

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.

TUSF avatar Nov 11 '23 20:11 TUSF

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

Vexu avatar Nov 11 '23 20:11 Vexu