Code Viewer Cut-Off Issue in Interactive Book: Seeking Solution for 'CodeHighlighter' Integration

Forums: 

I am creating an interactive book, and during the creation, I realized I needed a code viewer. I did some research and found the "CodeHighlighter" library. I managed to integrate it into my book; however, when I insert certain lines of code, the code viewer gets cut off, showing only the first and half of the second line. It is not possible to view the entire code. I also noticed that this happens when you access the book for the first time or reload the page. But if you click on another chapter of the book and then come back to the same chapter, the code is displayed completely. Detail, i am using Moodle and the browsrt i am using is firefox Does anyone have an idea of how to solve this bug?

Content types: 
BV52's picture

HI ramonvieira,

As you may know this was not created nor have been tested by us (H5P core team). While I don't doubt that there is someone in the community that have tried and know something about this, you will have better luck if you reach out to the developer of the content through their github repository.

-BV

otacke's picture

See https://h5p.org/comment/50418#comment-50418