private static function codeWrap($code, $maxLength = 150)
{
$lines = explode("\n", $code);
$count = count($lines);
for ($i = 0; $i < $count; ++$i) {
preg_match('`^\\s*`', $code, $matches);
$lines[$i] = wordwrap($lines[$i], $maxLength, "\n{$matches['0']}\t", TRUE);
}
return implode("\n", $lines);
}