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

Highlight syntax in shell blocks as bash #7

Open
ivan-aksamentov opened this issue Dec 13, 2021 · 1 comment
Open

Highlight syntax in shell blocks as bash #7

ivan-aksamentov opened this issue Dec 13, 2021 · 1 comment

Comments

@ivan-aksamentov
Copy link

ivan-aksamentov commented Dec 13, 2021

Currently shell blocks are treated as strings. Would be nice if they could have syntax highlighting for shell scripts instead. Bash is probably the most common.

rule:
    shell:
       """
       what="world"
       echo "Hello ${what}"
       """

rule:
    run: shell("echo Hello world")
@alpha-beta-soup
Copy link

As in the linked issue, snakefmt enforces a linebreak preceding these codeblocks. This removes syntax highlighting that otherwise works. It would be good to have syntax highlighting in both cases.

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