Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Sign In
Not a member yet? Click here to register.

Formatcode function (cvs)

duplicate line in formatcode function?

// Format spaces and tabs in code bb tags 
function formatcode($text) {
   $text = str_replace("  ", "  ", $text);
   $text = str_replace("  ", "  ", $text);

   $text = str_replace("\t", "   ", $text);
   $text = preg_replace("/^ {1}/m", ' ', $text);
   return $text;

Thread Information
1 post
1300 times
Last Post
Last updated on 14 years ago
You can view all discussion threads in this forum.
You cannot start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You cannot download attachments in this forum.