Skip to main content

Theory page: Add example exercises

Learn how to add example exercises to a theory page

Max Cohen avatar
Written by Max Cohen
Updated over 2 weeks ago

It's possible to add dynamic example exercises, showing the question, the answer and the solution.

Switch between examples in the upper right corner.

Request a new example of the same exercise by clicking on "New example" in the bottom left.

To add example exercises, use the code sw_example(arg), where arg is a list of exercise IDs separated with a semi-colon (;).

You may only use exercises that belong to author groups of which you are also a member.

Did this answer your question?