I want to know if there is a way that we can replace the highlight.js to use PrismJS instead. PrismJS seems a bit more complete now than highlight.js, that is the reason of the request.
Is there a way we can do it directly in Discourse hosted version? Or there is any plugin to support it?
I think the best thing to do here would be for someone to build a theme component that wires prism js in. It is technically feasible and would allow communities to experiment.
I am sure there are areas where prism outperforms highlight and the opposite.
I took a quick look at this today, and due to the fact that PrismJS doesn’t have automatic detection of the language code it would be a downgrade of a replacement for most communities.