Main reference
Topic outline
-
-
-
Comments can be used to explain the code and to make it more readable. They can also be used to prevent the execution of part of the codes, when testing an alternative code.
-
Comments in the variables fields
-
Comments can be added in the following fields:
- Random variables
- Global variables
- Local variables
-
Use the following syntax, where everything written between # and the end of the line is treated as a comment:
-
# Write your comments here
-
or
-
a = 2; # Write your comments here
-
Comments in the text and feedback fields
-
Comments can be added in the following fields:
- Question text
- General feedback
- Part's text
- Feedback (Part)
- Combined feedback (correct, partially correct, incorrect)
-
Use the following syntax, where everything written between <!-- and --> is treated as a comment:
-
<!-- Write your comments here -->
-
Comments can also be added on multiple lines and multiple lines of HTML code can be commented out as follows:
-
HTML code <!-- Comments or HTML code commented out --> HTML code
-
-