Mailing List and Code

Is it safe to assume that the new list can safely render code or is
it still better to use Pastie for such things?

Todd


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On Oct 29, 2007, at 7:11 PM, Todd wrote:

Is it safe to assume that the new list can safely render code or is
it still better to use Pastie for such things?

Todd

You can put code in. If you want to make it format nicely, be sure
that your block of code is separated from the rest of your text by
two returns (one complete blank space between lines) and then indent
each line of code with four or more spaces:

 <?php
 //this is a block of code
 for ($i = 0; $i < 100; $i++){
     print $i;
 }
 ?>

If you want to do a little one-liner, in the midst of a run of text,
and want it to render as ComputerType™, then put a back-tick (the
little back-leaning apostrophe that shares a keycap with the tilde on
US keyboards) on either side of it:

This is a run of text, and I just want to look computery here –
var foo = bar + baz; – but then carry on with what I was saying in
normal words.

If you want to use bbCode, then you will find that most things work
from there as well. It’s not a complete solution, but then we are
always working toward that goal…

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sometime around 29/10/07 (at 19:48 -0400) Walter Lee Davis said:

This is a run of text, and I just want to look computery here –
var foo = bar + baz; – but then carry on with what I was saying in
normal words.

Interesting. Great to have ways to put code into messages, at least
for web viewers.
I’d like to point out that the back ticks look like they should be
in the code when viewed in my email, like they should be typed. I
bet this causes some people some confusion. Hmm…

k


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options