Skip to main content

Code

Learn how to add code to your learning activities

Floor Takman avatar
Written by Floor Takman
Updated over a week ago

Code is the language that allows computers to understand what they need to do.
You can add code as a learning format to e-learning and microlearning activities.
This allows users, for example, to easily copy the code and use it themselves.

How do I add code?

  1. Open the e-learning or microlearning you want to add the learning format to via "Content", and click "Edit".

  2. Select the learning format "Code".

  3. Add a title. The code will be saved as a learning format in the Warehouse based on the title. You can hide the title from users by clicking the eye icon next to it.

  4. Choose the programming language you want to write the code in. You have the following options:

    • Javascript

    • PHP

    • CSS

    • Java

    • HTML

    • Python

    • YAML

    • Plain-text

  5. Write the code you want users to see.

Below, you'll find an example of a snippet of Javascript code.

Tip!

You can add learning objectives and tags to learning formats. Learning objectives are useful for creating exams based on specific objectives. By using tags, you can easily find content in the Warehouse. As you start typing, suggestions will appear for learning objectives and tags you have previously used.

Did this answer your question?