pythonsnakemake

How to obtain syntax highlight/coloring for Snakemake file?


The snakemake documentation show syntax highlighting of the Snakefile file, like in here enter image description here

Can I obtain something like for the Snakefile in an IDE, e.g. PyCharm or VSC?

With PyCharm I have tried associating the Python file type also with files called Snakefile, but that also checks the syntax, and of course shows errors all over the place. I would like to get (configure) syntax highlights only, if possible.


Solution

  • There is the snakemake-fmt:

    Update:

    For PyCharm, there is the SnakeCharm plugin.