7 12
发新话题
打印

测试论坛对代码的支持

继续。。。

[code=php]function phpcode($code){
global $phpcode_htm,$codeid;
$code=str_replace("[attachment=","[attachment=",$code);
$codeid ++;
$phpcode_htm[$codeid]="<div style=\"font-size:9px;margin-left:5px\"><b>CODE:</b></div><div class=quote id='code$codeid'>$code</div><div style=\"font-size:11px;margin-left:5px\"><a href=\"javascript:\" onclick=\"CopyCode(document.getElementById('code$codeid'));\">[Copy to clipboard]</a></div>";

return "<\twind_phpcode_$codeid\t>";
}
[/code]

TOP

对不起,那是以前的,现在已经转换成Discuz!论坛,不再支持这个功能了。也许以后有空我再加上。
更新的修改方法在这里:

http://www.phpwind.net/read-htm-tid-306172.html

TOP

 7 12
发新话题