Is it possible to permit the speedgrader to preview HTML files/php files with embedded HTML?

Jump to solution
stephen_adams5
Community Explorer

It seems to me that whatever the backend of Canvas is, that all it needs to do is the equivalent of a PHP htmlspecialchars call when displaying the file.

This would make the grading of programming assignments infinitely easier.

Other options like view page source on the submission is not appropriate because PHP is generating dynamic code and that must be evaluated itself.

The annotation tools would be a godsend here.

Labels (1)
0 Likes
1 Solution
DrNufer
Community Coach
Community Coach

I just saved a webpage and uploaded the HTML file in a sandbox course to test out your idea.  You probably found the same thing I did - the file can be viewed in Speedgrader, but many interactions and images are broken.  And there is no annotation tool.  

I would suggest you present that as a formal idea to the Instructure developers:

https://community.canvaslms.com/t5/Idea-Conversations/idb-p/ideas

That could be a very interesting and useful feature, though I know it would be far from mainstream in terms of adoption.

View solution in original post