Usings GeSHi within a quiz question

Usings GeSHi within a quiz question

by Billy Michael -
Number of replies: 1

Hello,

I have managed to get GeSHi working within lessons however i now need to syntax highlight within my questions.

I would like to post a snippet of code and use the select missing words question type. The problem i get is that the span tage seems to break this question type. The following occurs in the question instead of showing a dropdown box:

<select id="q34_1_p1" class="select place1" name="q34:1_p1"><option value="">Choose...</option><option value="1">invoice_date_line</option><option value="2">tewds</option></select>

Is there any way to resolve this?

This is using Moodle 3.1.2


Average of ratings: -
In reply to Billy Michael

Re: Usings GeSHi within a quiz question

by Billy Michael -
After working some more with this it appears that GeSHi also breaks the HTML in lessons. 


This means that i cannot highlight text in any lessons where the syntax highlighter is used.


Any suggestions?