From krzysztof@jusiak.net Wed Jul 8 07:33:29 2015 From: Krzysztof Jusiak To: boost@lists.preview.boost.org Subject: [boost] [BestPracticeHandbook] Run this code online Date: Wed, 08 Jul 2015 12:33:28 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7432721139319785959==" --===============7432721139319785959== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, I've recently added a new functionality to proposed boost.di library documentation. 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: http://krzysztof-jusiak.github.io/di/cpp14/boost/libs/di/doc/html/di/examples= /hello_world.html 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. Implementation details: https://github.com/krzysztof-jusiak/di/blob/cpp14/doc/js/run_this_code.js 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 github. Minimal html: