When posting code , wordpress often changes text into gibbersih making code boxes hard to read and copy-paste of code difficult or impossible.
Examples two – show up as — (one).
To fix this, use html code.
Single quote ‘ = ' yields '
Double quote ” = " yields "
Single dash – = - Yields -
Double dash — = -- yields --
> = > yields >
< = < yields <
The result is “code” that people who follow your blog can copy-paste into their terminals.
Alternately you may use a wordpress plugin. Here is a nice option with links to to other plugins.