case 'code':

                    $types = array ("php", "mysql", "html", "js", "javascript");

                    $code_start_html = '<div class="fbcode" style="width:'. $fbConfig->rtewidth .'px;"><table cellspacing="1" cellpadding="3" border="0"><tr><td><b>'._KUNENA_MSG_CODE.'</b></td></tr><tr><td><hr />';

                    if (!empty($tag->options["type"]) && in_array($tag->options["type"], $types)) {
                        $t_type = $tag->options["type"];
                    }
                    else {
                        $t_type = "php";
                    }

                    // make sure we show line breaks
                    $code_start_html .= "<code class=\"{$t_type}\">";
                    $code_end_html    = '</code><hr /></td></tr></table></div>';

					// Preserve spaces and tabs in code
                    $codetext = str_replace("\t", "__FBTAB__", $between);

                    $codetext = kunena_htmlspecialchars($codetext, ENT_QUOTES);
                    $codetext = str_replace(" ", "&nbsp;", $codetext);

                    $tag_new = $code_start_html. $codetext .$code_end_html;
                      #reenter regular replacements
                    $task->in_code = FALSE;
                    return TAGPARSER_RET_REPLACED;
                    break;