Jump to content

What's the secret of pasting code into the forum?


Recommended Posts

Use php tags:

foreach($myarray as $k=>$v)
{
echo "<label>My inputs</label>";
echo "<tr><td>$k</td><td$v</td></tr>";
}

 

Use code tags:

foreach($myarray as $k=>$v)
{
echo "<label>My inputs</label>";
echo "<tr><td>$k</td><td$v</td></tr>";
}

So using code tags drops the double spacing but neither one respects the indents in my code.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.