Skip to content Skip to main navigation Skip to footer

Code Highlights Bug

Welcome to QSM Support Forum. Forums QSM Pro Support Code Highlights Bug

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2112
    cho suhyeoncho suhyeon
    Participant

    Hello.

    I put the code in the quiz example.
    I installed the Enlighter plugin for applying code highlighting.

    #include <studio.h>
    
    void main() {
      return 0;
    }

    Checking the code above on the web, the <br> tag is automatically added at every line break.

    #include <br> <br> void main() {<br> return 0;<br> }

    I’ve tried various things but haven’t solved the problem.

    Attachments:
    You must be logged in to view attached files.
    #2115
    Kriti SharmaKriti Sharma
    Keymaster
    This reply has been marked as private.
    #2173
    Kriti SharmaKriti Sharma
    Keymaster

    Hi there,

    I am forwarding your issue to the development team. I will get back to you as soon as I hear back from them.

    Regards,
    Kriti

    #2233
    Kriti SharmaKriti Sharma
    Keymaster

    Hi,

    As you are trying Enlighter plugin to work with QSM and this plugin is not compatible with QSM.

    We can either put up a feature request to make this plugin work with QSM or you can hire our developer if you want it on urgent basis.

    Regards,
    Kriti

    #19253
    james charlesjames charles
    Participant

    Hi,

    This issue happens because some content filters or the editor automatically convert line breaks into <br> tags, which breaks code formatting. To fix it, try enabling the “Disable Visual Editor” option for that post or using a shortcode block that preserves formatting. Some code highlighting plugins like Enlighter also offer a “preformatted” or

     mode that prevents automatic <br> insertion. Wrapping your code in [enlighter]...[/enlighter] or using a dedicated code block usually solves this. For users testing apps alongside web content or educational tools, some also explore zona deportiva para ios for mobile compatibility and media previews.
    #19300
    jh f sdfsjh f sdfs
    Participant

    To help you display your code snippets properly, using the Enlighter plugin is a fantastic choice for clean syntax highlighting. This tool ensures that your technical guides are readable and professional https://streameastinf.com/ . If you are sharing tutorials on how to access the streameast app, using this plugin will help you present any necessary configuration scripts or HTML embeds in a way that is easy for your audience to follow and copy.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.