Subject: [boost] [BestPracticeHandbook] Run this code online
From: Krzysztof Jusiak (krzysztof_at_[hidden])
Date: 2015-07-08 07:33:28
I've recently added a new functionality to proposed boost.di library
After `try it online` the natural next step was to add `run this code`
functionality like in http://en.cppreference.com/w/ or
http://www.rust-lang.org/ programming language.
Powered by Wandbox and CodeMirror approach, let you play with the
particular example and switch between normal quick book programming listing
mode and the editor/compiler mode.
You can check it here:
Just click on `Run this code` button and you will be switched to the editor
mode, where you would be able to edit the code and compile it online using
the newest version of the library.
It's basically the same solution as `try it online`, just implemented in js
instead. Additionally, it also takes the newest version of the library from
<link rel="stylesheet" href="CodeMirror/lib/codemirror.css">
<link rel="stylesheet" href="CodeMirror/theme/zenburn.css">
<button class="TryItBtn" id="run_it_btn" onclick="show('
<textarea style="display: none" id="code"></textarea>
<textarea style="display: none" id="output"></textarea>
//quick book programming listing here or anything else, which should be
hidden when editor mode is enabled
Let me know, what do you think.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk