romannurik / SlidesCodeHighlighter

A little web app that helps you copy+paste syntax-highlighted code into slide decks.
https://romannurik.github.io/SlidesCodeHighlighter/
Apache License 2.0
1.06k stars 92 forks source link

Elif does not highlight properly #53

Closed lbiester closed 4 years ago

lbiester commented 4 years ago

I have noticed that at least in some cases, elif does not appear to be highlighted properly by the tool. When I put in the following code, elif is not highlighted: image

I am willing to try and look into fixing this on my own when I have time, but thought I would bring it to your attention. Thank you for this tool, I use it a lot for teaching!

romannurik commented 4 years ago

Hi there! Did you specify python as a language?

romannurik commented 4 years ago

Just confirmed this myself, if you set the language to python elif does get highlighted correctly.

lbiester commented 4 years ago

Thank you. In my opinion there's a usability issue with the dropdown for language selection. It autofills to (auto), but then when you select the dropdown, it makes it look like there are no other options unless you delete (auto). I initially was unclear on how to actually select the language because of this.

romannurik commented 4 years ago

Absolutely agree, it's a pretty simplistic implementation right now. Can definitely improve on it.