Although GitHub codeblocks support to use of different JSON configurations (json5, jsonc), Highlight.js does not support commented json. Instead, it actively resolves the script between either coffeescript (causing the highlighting errors) and php (which surprisingly works without any issue).
To support JSON with comments, it was recommended to use the JS highlighter or to create our own distribution of highlight.js.
Although GitHub codeblocks support to use of different JSON configurations (
json5
,jsonc
), Highlight.js does not support commented json. Instead, it actively resolves the script between eithercoffeescript
(causing the highlighting errors) andphp
(which surprisingly works without any issue).To support JSON with comments, it was recommended to use the JS highlighter or to create our own distribution of highlight.js.