WP-Syntax 程式碼變色

wordpress 的外掛用GeSHi引擎繪製的 http://wordpress.org/extend/plugins/wp-syntax/

if(($value['display']==0) && !($this->session->userdata('isLogin')))
   continue;
$value['content'] = strip_tags($value['content']);
$value['content'] = mb_substr($value['content'],0,30,"UTF-8");

然後再 wp-includes/js/quicktags.js 這是在編輯器的html快速標籤的部份加上

原本

edButtons[edButtons.length]=new edButton("ed_code","code","","","c");

的後面加上這個按鈕..方便輸入

edButtons[edButtons.length]=new edButton('ed_mycode','mycode','
','

','z');