zig-play
zig-play copied to clipboard
Loading and saving programs from the playground
There's currently no way to share links to programs in the Zig playground. But there should be a way to save a link to a program in a query string, like this:
https://zig-play.dev/?source_code_goes_here
I would use encodeURIComponent to convert the source code to a query string, and then use decodeURIcomponent to convert it back to source code.