View Single Post
  #3  
Old 11-27-2007, 02:51 PM
jaywilliams's Avatar
jaywilliams+ Offline
Team Pixelpost
 
Join Date: Sep 2005
Posts: 1,003
Send a message via AIM to jaywilliams Send a message via MSN to jaywilliams Send a message via Yahoo to jaywilliams Send a message via Skype™ to jaywilliams
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.
__________________
Jay Williams | A Different View
Reply With Quote