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.
Related feature requests (optional)
https://forum.obsidian.md/t/syntax-highlight-for-matlab-in-live-preview/56913