Set various tutorial options that control the display and evaluation of exercises.
1 2 3 4 5 6 7 8 9 10 |
exercise.cap |
Caption for exercise chunk (defaults to |
exercise.eval |
Whether to pre-evaluate the exercise so the reader can
see some default output (defaults to |
exercise.timelimit |
Number of seconds to limit execution time to
(defaults to |
exercise.lines |
Lines of code for exercise editor (defaults to the number of lines in the code chunk). |
exercise.checker |
Function used to check exercise answers. |
exercise.completion |
Use code completion in exercise editors. |
exercise.diagnostics |
Show diagnostics in exercise editors. |
exercise.startover |
Show "Start Over" button on exercise. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.