You need to wrap your code in either code
or pre
tags. code
is for when inline code in a sentence e.g. include("hello.php")
whereas pre
is for preformatted blocks of text e.g.:
function hello_world(){
echo 'hello world';
}
For code highlighting etc, you’ll need to look for plugins.
The easiest way of using these tags is using the preformatted style: