Support » Plugin: Quiz Maker » Facing Issue while creating a programming quiz

  • Resolved amlendra021

    (@amlendra021)


    First, I want to say thanks for this amazing plugin. I have tested almost all available Quiz plugin but I found this plugin very useful. No doubt it is working fine but I am facing issue while creating a programming quiz with enlighter syntax highlighter. All code comes in a single line, for example.

    #include<stdio.h>union Point{ unsigned int x:4; unsigned int y:4; int res;};int main(){ union Point pt; pt.x = 2; pt.y = 3; pt.res = pt.y; printf(“\n The value of res = %d” , pt.res); return 0;}

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author ays-pro

    (@ays-pro)

    Hi @amlendra021 ,

    Thank you for the topic and kind words.

    I have checked your mentioned text as I put it into a quiz question and it works fine.
    Can you please clarify the details, where you paste the code and how?
    Or provide a link to the quiz.

    Thanks

    Thread Starter amlendra021

    (@amlendra021)

    In question, I am inserting the code in “code insert” of enlighterJs Syntax highlighter plugin. Check this demo page https://aticleworld.com/onlytest/. In the last thanks for the quick response.

    Plugin Author ays-pro

    (@ays-pro)

    Thank you for your reply.

    Presumably, the issue is concerning to CSS of your mentioned plugin (Enlighter – Customizable Syntax Highlighter ( version 4.2 ) ).
    Maybe there is an enabled function regarding the scroll as the question container is selected as “enlighter-overflow-scroll”.

    We recommend you either review the options of that plugin or use the following custom CSS code:

    .ays-quiz-container .ays_quiz_question .enlighter-c0{
    	white-space: break-spaces;
    }

    Thanks

    Thread Starter amlendra021

    (@amlendra021)

    I have disabled the scroll features in the plugin and as well I have used the mentioned script but still not working.No problem I will manage thank for the support.

    Plugin Author ays-pro

    (@ays-pro)

    Thank you for your reply.

    Please put this new CSS code and make a hard refresh (CTRL+F5)

    .ays-quiz-container .ays_quiz_question .enlighter span {
        white-space: break-spaces;
    }

    The selector has been changed after changing the parameter.
    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Facing Issue while creating a programming quiz’ is closed to new replies.