RoboHelp 2020 > Frameless > Syntax Highlighter Not Working (Prism.JS) On Server, But Is Fine Locally
Hello! I'm using Prism.JS (https://prismjs.com/) to generate syntax highlighting for XML markup in the docs I'm writing. Locally, this all works well and looks great, but when the files are uploaded to the server it stops working. You can see the live example here:
https://docs.flightsimulator.com/html/Content_Configuration/Sounds/Sound_Examples.htm
It should look like this:

Note that refreshing the page briefly shows the code with highlighting then it breaks...
Checking the console output on the browser, I see no errors and the page should load fine, so my question is WHY is the online version not working and what can I do to resolve it? I suspect it's got something to do with the RoboHelp async loading of JS files required to build the ToC etc... but I have no idea how to resolve the issue.
Note I've tested on Chrome and Edge and they both show the same issue, but Firefox seems to load everything fine.
