I teach AP Computer Science and would like to find ways to implement quizzes and assignments in Canvas that allow for coding in Java.
I too have the same question!
Unfortunately, I have found no LTI to incorporate anything regarding Computer Science into the Canvas LMS; including,
I did find "Code Embed" which allows you to embed source code into Pages but it is extremely buggy. I also experimented slightly with SphereEngine and ZyBooks which allows you to create programming assignments
For single, one-line answers, you may want to try "Fill-in-the-Blank" questions and then use regular expressions to determine acceptable answers but I highly do not recommend it since showing solutions to students involves looking at very scary regular expressions.
Here are some recommended resources for embedding code:
The first method applies text formatting to your source code using the <pre> tag. Depending on your campus CSS settings, the preformatted background does not match the color used by the source code beautifier. To fix this, add the options, style="background-color: #XXXXXX, border: 0" to the <pre> tags.
The second option is easier to use since it simply creates an image you can insert into your Pages but is no longer editable once the image is generated.
Retrieving data ...