Code Viewer Cut-Off Issue in Interactive Book: Seeking Solution for 'CodeHighlighter' Integration
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?
otacke
Sat, 10/21/2023 - 01:55
Permalink
That's most likely a bug in
That's most likely a bug in the CodeHighlighter not triggering a 'resize' event when it should, cmp. https://snordian.de/2023/09/30/what-is-it-with-h5p-and-this-resizing/ You should reach out to the developer.