Editing (Source mode and Live Preview) and Reading views use different syntax highlighting.
Live Preview mode doesn’t support PrismJS and may render syntax highlighting differently.
https://help.obsidian.md/Editing+and+formatting/Basic+formatting+syntax#Code+blocks
This is the source:
```toml
[table]
"key1" = 1
"key2" = 2
```
A screenshot from Reading view in the Sandbox vault: