How can I associate a file name (or file type) to an existing syntax highlight scheme?

I am using snakemake, which requires me to write a script (always) called `Snakefile`, whose syntax is derived from Python. How can I tell PyCharm I would like to highlight the syntax in file `Snakefile` like if it was a Python file? Is it possible?
Note that I cannot just associate the Python file type with `Snakefile`, because that would also check the file syntax as if it was Python, and show errors all over the place. I would like only the syntax highlight of Python to be used.

0

Please sign in to leave a comment.