color code python or R code in moodle XML
Summary This postmortem analyzes why syntax‑highlighted R/Python code produced by exams2html() loses all color when exported to Moodle XML via exams2moodle(). The issue stems from Moodle’s limited support for HTML/CSS in question text and the way the r‑exams package sanitizes output for LMS compatibility. Root Cause Moodle’s XML format strips or ignores CSS classes used … Read more