On Saturday, 24 December 2016 at 00:04:54 UTC, Seb wrote:
On Friday, 23 December 2016 at 23:52:48 UTC, Johan Engelen
wrote:
On Tuesday, 20 December 2016 at 07:04:38 UTC, Seb wrote:
https://github.com/dlang/dlang.org/pull/1527
Nice. It's pretty awesome!
When clicking the "edit" button, a new box appears with the
example's code in it but editable. Then when clicking "run",
the editted code disappears (it's saved for future use, pfew!).
How about this: when clicking _either_ "edit" or "run", the
non-editable code box disappears, and the edittable code box
appears and stays there forever.
(also, the height of the editable-code-box is too small;
should fit the whole example's code?)
cheers,
Johan
Hehe, that's already in the queue:
https://github.com/dlang/dlang.org/pull/1529
This is really wonderful. An excellent feature for new users –
lowers the cost of "just try it out".
Feedback:
1. It will be aesthetically better if the edit/run buttons are
inside the code box, say just inside the right top corner.
2. Could we add a "open in an external website/new window"
icon/button (for example:
http://findicons.com/files/icons/2315/default_icon/256/open_in_new_window.png ) to open the example in say a dpaste window or an equivalent playground.
Thanks,
Saurabh