代码高亮测试

function text($text)
    {
        # make sure no definitions are set
        $this->DefinitionData = array();
        # standardize line breaks
        $text = str_replace(array("\r\n", "\r"), "\n", $text);
        # remove surrounding line breaks
        $text = trim($text, "\n");
        # split text into lines
        $lines = explode("\n", $text);
        # iterate through lines to identify blocks
        $markup = $this->lines($lines);
        # trim line breaks
        $markup = trim($markup, "\n");
        return $markup;
    }

1923236188 贫民 沙发

2017-11-26 15:45

结果证明:不仅pwlibra模板支持代码高亮,pwice模板同样也可以!小谷派666!
游客
登录后才可以回帖,登录 或者 注册