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

Support query parameters to fillout output options #67

Closed loicortola closed 2 years ago

loicortola commented 2 years ago

Hello,

thanks for the amazing lib. Simple and beautiful. We are using it a lot to copy-paste code to slides, and everytime I click on the bookmark, I have to adjust the formatted code settings. It's most of the time always the same settings, so I would love to encode it in the URL.

Does the feature make sense to you? I may create a PR if so.

Thanks a lot :)

romannurik commented 2 years ago

Sorry for the delay — this use case should already be covered by the fact that preferences (even your last code snippet) are persisted in localStorage — is this working for you?

loicortola commented 2 years ago

Hello,

not really, using local storage is good to persist it to my local machine, but not for sharing it to others :)

romannurik commented 2 years ago

This makes sense, I'll take a stab