I can't reproduce this report. This is what your code looks like in your most recent answer in dark mode, which looks like it's working just fine, at least.
Be aware that sometimes you may need to explicitly state the language that needs to be used. If the system can't automatically detect which language it is, it won't apply any syntax highlighting. You can do this with the code fences (e.g. " ```php
") or the old-school method (<!-- language: lang-php -->
).
Also keep in mind that when editing a post, the preview will lose syntax highlighting whenever you start typing or making changes. You'll need to stop and wait a few seconds for the syntax highlighting to show up in the preview again.
code
) was never really highlighted in any special way AFAIK.