Hello! I noticed that the syntax highlighting for Python when viewing solutions on the web doesn’t include any highlights for match and case.
Here is an example image from the darts exercise, where they aren’t highlighted:
Solution
Also, here is my solution for the exercise so you can see it in your own browser. This is the same code as the image I provided earlier.
Although I don’t use the editor, match and case aren’t highlighted there either. I find it easier to read code with syntax highlighting. Would it be possible to add syntax highlighting for match and case?
I believe Exercism’s web editor relies on Highlight.js for syntax highlighting. Once that project is updated to support match/case, Exercism could bump their package version to get the latest and greatest.
Do you know if Highlight.js supports match/case highlighting? If not, you could potentially contribute it to that project!
If Highlight.js supports it, Exercism may need to update what version of the Highlight.js library they’re using. I’m not entirely sure how that works. It might be this line, though.
@iHiD Is there any process in place for bumping Highlight.js versions?