EDIT: I mean in WordPress posts
————————————–
I’m using Classic Editor and there doesn’t seem to be even basic support for code blocks to the point that leading white space is even ignored hence cannot even add proper indentation to the code examples.
Suddenly regretting not building this website with Statamic *sad emoji*
You need to use a syntax highlighter plugin like https://wordpress.org/plugins/syntaxhighlighter/
Or select `Preformatted` from the Para/Headings dropdown.
There used to be a code syntax highlighter plugin for WordPress. Not sure if it’s still maintained.