I want to bulk upload questions for a final programming exam that I have written in the CSV format (referencing the information in this article).
I can use the <code> tag to format the code answer choices, but they render only in monospace font, not using the Java syntax highlighting as when I manually click "Insert Code" in the question editor. Here is an example of the syntax highlighting from the GUI:
I published this sample question to the LOR and essentially copied all the XML into my CSV, and it doesn't render with syntax highlighting. Here are some of the ways I've tried to get that functionality
NewQuestion,MC
QuestionText, Which of the following methods returns a String array?, HTML
Option,0, <p><pre class="line-numbers d2l-code language-java" data-language="Java"><code class="language-java">public static void returnStringArray()</code></pre></p>, HTML
Option,100, <pre class="line-numbers d2l-code"><code class="language-java">public static String[] returnStringArray()</code></pre>, HTML
Option,0,<p><span>public static void returnStringArray()</span></p> <pre class="line-numbers d2l-code"><code class="language-java">public static void returnString();</code></pre>, HTML
Option,0,<code class="language-java">public String returnStringArray()</code>, HTML
,,,,
Is this possible? It's okay with the monospace, but the highlighting will be better.
Also, is there a way to set render_choice shuffle="yes"using the CSV format? This would provide the "randomize answers" functionality that I only see in the GUI. My problem is that I would have to manually set every question. I would prefer to do this at the Quiz level, or at the question level using the import questions CSV file. It's not in the "Optional entries for your CSV template" section of the article I referenced above, but would be a helpful addition — unless there is a way I am missing.
Thank you!