A point of clarification, triple ticks inline do not work. You can set off a single word or phrase
inline using single ticks.
For code blocks you need a new line before your triple ticks and then a new line before your code.
<?php here is some php with a single tick ` and some [[~other stuff]] and a double tick``
Now is some text.
In order to keep it clean and readable, I generally insert a newline and a blank line before a code block as follows:
<h1>This is a Title</h1>
<p>This is a paragraph.</p>
I hope this helps