Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

Highlight zig in mardown code blocks #57

Open
matklad opened this issue Dec 6, 2022 · 2 comments
Open

Highlight zig in mardown code blocks #57

matklad opened this issue Dec 6, 2022 · 2 comments

Comments

@matklad
Copy link

matklad commented Dec 6, 2022

Currently zig is not highligheted in markdown:

Screenshot_20221206_144459

Here's an example to make it work:

https://github.com/mjbvz/vscode-fenced-code-block-grammar-injection-example

@SuperAuguste
Copy link
Member

This is probably an issue for https://github.com/ziglang/vscode-zig as we don't provide highlighting grammars (though maybe we should start doing so?)

@matklad
Copy link
Author

matklad commented Feb 7, 2023

though maybe we should start doing so?

I think that's the way. More generally, I believe there shouldn't be separate zig and zig-zls vscode extensions, there should be a single extension that handles everything zig-related. From the user's perspective, an important part of UX is to be able to install a single thing, and trust the authors of the thing to correctly assemble a holistic user experience from the underlying tools.

To clarify, this integration would not preclude someone from shipping an alternative view of how it all should look like: the benefit is in integration, not in monopoly.

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

No branches or pull requests

2 participants