Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Syntax highlight based on inline script type #5

Open
rossmacarthur opened this issue Jun 23, 2019 · 4 comments
Open

Syntax highlight based on inline script type #5

rossmacarthur opened this issue Jun 23, 2019 · 4 comments

Comments

@rossmacarthur
Copy link

Just allows you to have inline scripts for recipes:

recipe:
    #!/usr/bin/env python
    import sys
    print("Hello from stderr", file=sys.stderr)

It would be nice if vscode-just could correctly syntax highlight these scripts, using the shebang to determine what syntax highlighting it should use.

This happens in the Markdown syntax highlighting in VS Code when you make an inline code block.

VS Code Markdown Example

@skellock
Copy link
Owner

Oh man, how cool is that!?

@vmiheer
Copy link

vmiheer commented Nov 17, 2020

I was exactly upto it and seems like relevant thing is: https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide#embedded-languages

@vmiheer
Copy link

vmiheer commented Nov 17, 2020

@vmiheer
Copy link

vmiheer commented Nov 17, 2020

@diptopandit diptopandit mentioned this issue Dec 7, 2021
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

3 participants