Nethereum / Nethereum.Playground

Compile and run Nethereum snippets on the browser
MIT License
28 stars 17 forks source link

Load local samples files (.cs/.vb) #8

Closed Enigmatic331 closed 5 years ago

Enigmatic331 commented 5 years ago

As titled - Added a simple functionality to allow local files to be loaded into the editor. Mostly to make it slightly easier to share snippets (in files) instead of having to pass around and copy paste entire code blocks.

To round up this functionality, during the coming days will include also a "Save As" functionality so Playground users could edit samples to their liking and save it to a local copy. Also, the "Load from Gist/Github" functionality we've talked about. :)

juanfranblanco commented 5 years ago

" Also, the "Load from Gist/Github" functionality we've talked about. :)", that is very limiting "Load from Url" is the best option like we discussed

Enigmatic331 commented 5 years ago

Ah sorry - I should rephrase - Grab code from URL (not necessarily Gist/Github, as long as it's a URL which returns plaintext codes of some form).

juanfranblanco commented 5 years ago

Don't worry :) Also what I meant for LocalStorage, it is to use something like https://github.com/BlazorExtensions/Storage

juanfranblanco commented 5 years ago

Oh I forgot to say.. this is great thanks!! (but you know I said already.. just not here :D)