Home  >  Article  >  Backend Development  >  thinkueditor 1.4.3.1 好像无法渲染下面这个php的语法高亮?

thinkueditor 1.4.3.1 好像无法渲染下面这个php的语法高亮?

WBOY
WBOYOriginal
2016-07-06 13:51:261028browse

在UEditor里通过语法选择php,发布到网页上,无法正确高亮下面这些php代码,谁能找出最根本的问题在哪里?

Ueditor到‘解密字符串’那里, * @return strin就出错了。。。。 最后一个g都出不来了

<code><?php // +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Crypt\Driver;
/**
 * Crypt 加密实现类
 * @category   ORG
 * @package  ORG
 * @subpackage  Crypt
 * @author    liu21st <liu21st>
 */
class Crypt {

    /**
     * 加密字符串
     * @param string $str 字符串
     * @param string $key 加密key
     * @param integer $expire 有效期(秒)     
     * @return string
     */
    public static function encrypt($str,$key,$expire=0){
        $expire = sprintf('%010d', $expire ? $expire + time():0);
        $r = md5($key);
        $c=0;
        $v = "";
        $str    =   $expire.$str;
        $len = strlen($str);
        $l = strlen($r);
        for ($i=0;$i 0 && $expire </liu21st></code>

回复内容:

在UEditor里通过语法选择php,发布到网页上,无法正确高亮下面这些php代码,谁能找出最根本的问题在哪里?

Ueditor到‘解密字符串’那里, * @return strin就出错了。。。。 最后一个g都出不来了

<code><?php // +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
namespace Think\Crypt\Driver;
/**
 * Crypt 加密实现类
 * @category   ORG
 * @package  ORG
 * @subpackage  Crypt
 * @author    liu21st <liu21st>
 */
class Crypt {

    /**
     * 加密字符串
     * @param string $str 字符串
     * @param string $key 加密key
     * @param integer $expire 有效期(秒)     
     * @return string
     */
    public static function encrypt($str,$key,$expire=0){
        $expire = sprintf('%010d', $expire ? $expire + time():0);
        $r = md5($key);
        $c=0;
        $v = "";
        $str    =   $expire.$str;
        $len = strlen($str);
        $l = strlen($r);
        for ($i=0;$i 0 && $expire </liu21st></code>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn