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

bug: No formatted code shows up #68

Closed wangela closed 2 months ago

wangela commented 2 years ago

When pasting code on the left, no formatted code appears on the right.

Browser: Chrome Version 101.0.4951.64

Javascript Console says:

romannurik commented 2 years ago

Hi there! One thing to double check is that your "language" is set correctly? There are definitely warnings around workers + CORS but I haven't seen those interrupt the normal flow of the app. (I do need to fix those eventually)

wangela commented 2 years ago

That's the odd symptom - the "Language" element shows "(auto)" in red and the dropdown doesn't expand to show the usual list of options. Is that a clue as to what's failing? image

edited to add: I realized that I can manually type in the language and it works as long as I spell the language correctly with the expected capitalization. It just doesn't populate a dropdown list to show language options like it used to.

romannurik commented 2 years ago

Ah, this is probably because "(auto)" is a left over stored value (in the browser's localStorage). try just deleting it entirely? That field doesn't have the best UX :-/