You need to include javascript and css files from codemirror.net
and codetester.io. here's how it looks:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/codemirror.css"> <link rel="stylesheet" href="https://codetester.io/static/assessment/codetester-0.2.css"> <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/codemirror.js"></script> <!-- use the right mode here based on your language - https://codemirror.net/mode/ --> <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.4/mode/python/python.js"></script> <script src="https://codetester.io/static/assessment/codetester-0.2.js"></script>Create an assessment and add a question - tutorial video here
Codetester(elementToAppendTo, { widgetUrl: "YOUR_QUESTION_WIDGET_URL", testResultCallback: function(passed) { console.log(passed); } });