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

Feature: Syntax highlighting grammar code nu code blocks in markdown preview #192

Open
LoicRiegel opened this issue Mar 7, 2025 · 1 comment

Comments

@LoicRiegel
Copy link

Hi, first, thank your for this great extension 👍 💯

The syntax highlighting grammar in Nushell scripts (.nu files), but it's not working when you have a preview in VS code of a markdown file containing a nu code block.

I could try to work on it, I've never worked on VS code extensions but I'll figure it out :)
Thanks a lot for your feedback

How to reproduce

Copy this to a markdown file and Open Markdown Preview in VS Code:

# inside md file
```nushell
plugin add target/debug/nu_plugin_example
# or then either restart your current nushell session or run:
plugin use target/debug/nu_plugin_example
```

taken from https://github.com/nushell/nushell/blob/main/crates/nu_plugin_example/README.md

Observe no syntax highlighting

Desired:

Syntax highlighting is on

@fdncred
Copy link
Contributor

fdncred commented Mar 7, 2025

I'm not sure how to add syntax highlighting to markdown either. I think that would be a welcome addition to the extension if you can figure it out. Have at it. Thanks!

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

No branches or pull requests

2 participants