Skip to content

Support syntax highlighting in Markdown fenced code blocks #154

Open
@TUSF

Description

@TUSF

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions