You can also use a bit of Markdown magic to escape the characters to get something very similar to code:
Code:
`$thumbpath = ltrim($cfgrow['thumbnailpath'], "./");`
(Note the backticks at the front and back of the string)
This would result in:
HTML Code:
<p><code>$thumbpath = ltrim($cfgrow['thumbnailpath'], "./");</code></p>
And if you put a blank line at the top and the bottom it will create a new paragraph for your code snippet.
Code:
Lorem ipsum dolor sit amet
`$thumbpath = ltrim($cfgrow['thumbnailpath'], "./");`
consectetur adipisicing elit
HTML Code:
<p>Lorem ipsum dolor sit amet</p>
<p><code>$thumbpath = ltrim($cfgrow['thumbnailpath'], "./");</code></p>
<p>consectetur adipisicing elit</p>
Of course, you could always enter the actual html code in these examples as well, but I normally find using Markdown is much easier.