wordpress 的外掛用GeSHi引擎繪製的 http://wordpress.org/extend/plugins/wp-syntax/
1 2 3 4 |
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快速標籤的部份加上
原本
1 |
edButtons[edButtons.length]=new edButton("ed_code","code","<code>","</code>","c"); |
的後面加上這個按鈕..方便輸入
1 |
edButtons[edButtons.length]=new edButton('ed_mycode','mycode','<pre lang="php">',' |