CodeColorer关键字在新窗口中打开
2010 二月 27
CodeColor这个插件用的是geshi代码高亮lib,因此只要修改geshi即可:
修改lib/geshi.php
第3531行:
1 |
为
1 | $stuff_to_parse = str_replace('<|UR1|', '<a target="blank"' . $this->link_target . ' href=', $stuff_to_parse); |
即添加一个target属性。
同理:
第3533行:
1 | $stuff_to_parse = str_replace('<|UR1|', '<a' . $this->link_target . ' style="' . $this->link_styles[GESHI_LINK] . '" href=', $stuff_to_parse); |
修改为:
1 | $stuff_to_parse = str_replace('<|UR1|', '<a target="blank"' . $this->link_target . ' style="' . $this->link_styles[GESHI_LINK] . '" href=', $stuff_to_parse); |
同理:
第3536行修改为:
1 | $stuff_to_parse = str_replace('<|UR1|', '<a target="blank"' . $this->link_target . ' href=', $stuff_to_parse); |
One Response
Post a comment





不错不错,收走了……!~~