Re:Try Python, Ruby, Lua, Scheme, QBasic, Forth ...
by pyre on Friday September 30, 2011 @07:53PM
(#3058946)
I will note that when copying the text out of the interpreter, the prompt (>) doesn't copy (I assume that you may be using a CSS :after or :before decorator, though I didn't look). Sometimes even the newline itself didn't copy. For that post I had to cleanup all of the text so that it would display properly. This may be an issue you want to look at if you want to support people copy/pasting stuff that they are working on out of the console (or you may just want to add a button that generates a Github gist or pastebin entry and displays a link to it).
[ Parent
| on HN ]
Re:Try Python, Ruby, Lua, Scheme, QBasic, Forth ...
by max99x on Friday September 30, 2011 @08:07PM
(#3058975)
The prompt label is an image, hence it's not copyable. We experimented a bit with various copy-friendly approaches, but couldn't find anything that was cross-browser and did not damage the look/layout we were going for. To share a session, click the save button on the top right - it'll generate a shareable link with the editor content and the whole REPL session in replayable form.