When creating a new exercise, you may want to use code as content to provide students with a code sample.
To use code as content, follow the steps below.
- Create an assignment. Read here how to create an assignment.
- Click New exercise, fill in a title and click Save.
- Click New question and select a question type or click New description and select a description type.
- Click the ΒΆ-icon and select code.
- Write your code.
- The syntax of the following programming languages will be highlighted: csharp, java, javascript, matlab, PHP, python, ruby, typescript and XML.
- Click Save.
Comments
0 comments
Please sign in to leave a comment.