Use case or problem
In the Basic formatting syntax wiki, it mentions:
Live Preview mode doesn’t support PrismJS and may render syntax highlighting differently.
The native syntax highlighter supports a lot less languages than prismJS.
Proposed solution
Use PrismJS if possible.
Current workaround (optional)
Crtl-E to toggle between views currently.