phpbb论坛语法高亮插件o0johntam0o产生空白行的解决方法

当我发布没有空行的代码时,它会自动添加一个空行;如果我添加空行,则它会添加2,依此类推。它会增加1个空行。经过查找需要修改一下“\ext\o0johntam0o\codeboxplus\event\main_listener.php”文件中的第99行内容:

// 修改前
return $this->codebox_template(preg_replace('#\#msi', "\n", $arg[3]), $arg[1], $arg[2], $post_id, ++$part);
// 修改后
return $this->codebox_template(preg_replace('#\#msi', "", $arg[3]), $arg[1], $arg[2], $post_id, ++$part);

此条目发表在随记分类目录,贴了标签。将固定链接加入收藏夹。

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理。