// Format spaces and tabs in code bb tags
function formatcode($text) {
[b] $text = str_replace(" ", " ", $text);
$text = str_replace(" ", " ", $text);[/b]
$text = str_replace("\t", " ", $text);
$text = preg_replace("/^ {1}/m", ' ', $text);
return $text;
}
Category Forum
Bugs and Errors - 6Labels
None yet
Statistics
0 participants
Notifications
You are not receiving notifications from this thread.
Related Questions