entering code in tutorials

Joined: 06/03/2008
User offline. Last seen 29 weeks 2 days ago.

It seems like I remember seeing somewhere how to enter code so it prettifies in things such as the tutorials. Is there a link somewhere? If not there should me a popup or something. Keep up the good work.

G&G Podcast Host
Matt Farina's picture
Joined: 06/01/2006
User offline. Last seen 21 weeks 6 days ago.
Formatting Info

If you click on formatting info below a box there is a link to more detail. Details are in there.

Matt Farina
Geeks and God Former Co-Host
www.mattfarina.com

Joined: 06/03/2008
User offline. Last seen 29 weeks 2 days ago.
OMgosh I am getting old

Thanks for your constrained reply. Sometimes the simplest things escape me. And it is such a nice big font. I have to chuckle at what a stupid question that was.

Joined: 12/16/2007
User offline. Last seen 27 weeks 6 days ago.
also...

You can use it inline, or as a box. Inline looks like this:

Mark your dive like this: <code><div id="code-snip">

And displays like this:

Mark your dive like this: <div id="code-snip">

Block works like this:

<code>
div.codeblock {
  padding: 5px;
  border: 1px solid #CCC;
  background-color: #EEE;
}
/* The closing tag won't display but needs to be added. */


And displays like this:
div.codeblock {
  padding: 5px;
  border: 1px solid #CCC;
  background-color: #EEE;
}

So, if there are no returns between <code> and </code> it displays inline, if their are returns between <code> and </code>, then it displays as a box. Fun!

Blessings,
Tony

Joined: 06/03/2008
User offline. Last seen 29 weeks 2 days ago.
thanks

Thanks Tony.