If you are wanting to demonstrate code authoring in a course, you can embed code from the following editors (or use our native code snippet):
Codepen
Gist
JS Fiddle
To do this select the Task bar in Create (using the + icon). Select Code to reveal the drop down menu.
Code Snippet
Select Code Snippet to reveal the Code Snippet Settings box. Input your code, and select Save. Your code will be embedded into your course.
Codepen, Gist, and JSFiddle
To embed code from Codepen, Gist, or JSFiddle, select the appropriate editor from the drop down menu. Once selected a screen will appear prompting you to add the following:
A field to paste your embed code.
The course URL for your code editor.
A field to enter the height of the display area for the code (maximum height is 600px, and then a scrollbar will appear).
An attribution field if you wish to credit the code to someone.
Once you have completed the required fields, select Save to view your code task.