鉴于SyntaxHighlighter非常方便,所以我们有必要在编辑界面中添加一个SyntaxHighlighter按钮。 修改/wp-includes/js/quicktags.js文件: [code lang="php"]edButtons[edButtons.length]=new edButton("ed_code","code","<code>","</code>","c");[/code] 在后面添加[code]edButtons[edButtons.length]=new edButton("ed_shle","【code】","【code】","【/code】","c");[/code] 大家要将【】换成英文状态下的[]道招网默认用就是这个。Original resource:Click here