«

emlog插件 ---- SyntaxHighlighter 代码高亮2.2更新

时间:2015-7-22 01:30     作者:admin     分类: emlog


此款emlog插件有以下功能:

有如下不足:

由于emlog 5.1.0版本采用KindEditor新版本,不支持原来的方法,因此不再支持5.1.0及以下版本

如果你的文章页或者是css中对pre标签有空值作用,可能会有bug显示.可自行调试解决,或者联系我,我会尽力帮你解决.

兼容性不是太好,如果安装后发现不能正常使用,请检查是否是某款插件冲突导致.

使用方法:

第一步:通过后台插件安装地址,上传安装插件,如果失败(一般是空间不支持)

请解压后用FTP上传至  网站根目录/content/plugins/ 路径下

第二步:在插件设置页面刷新,激活即可

<?php
/**
 * Confirms that the activation key that is sent in an email after a user signs
 * up for a new blog matches the key for that user and then displays confirmation.
 *
 * @package WordPress
 */

define( 'WP_INSTALLING', true );

/** Sets up the WordPress Environment. */
require( dirname(__FILE__) . '/wp-load.php' );

require( dirname( __FILE__ ) . '/wp-blog-header.php' );

if ( !is_multisite() ) {
    wp_redirect( site_url( '/wp-login.php?action=register' ) );
    die();
}

if ( is_object( $wp_object_cache ) )
    $wp_object_cache->cache_enabled = false;

// Fix for page title
$wp_query->is_404 = false;

/**
 * Fires before the Site Activation page is loaded.
 *
 * @since 3.0.0
 */
do_action( 'activate_header' );

/**
 * Adds an action hook specific to this page that fires on wp_head
 *
 * @since MU
 */
function do_activate_header() {
    /**
     * Fires before the Site Activation page is loaded, but on the wp_head action.
     *
     * @since 3.0.0
     */
    do_action( 'activate_wp_head' );
}
add_action( 'wp_head', 'do_activate_header' );

/**
 * Loads styles specific to this page.
 *
 * @since MU
 */
function wpmu_activate_stylesheet() {
    ?>
    <style type="text/css">
        form { margin-top: 2em; }
        #submit, #key { width: 90%; font-size: 24px; }
        #language { margin-top: .5em; }
        .error { background: #f66; }
        span.h3 { padding: 0 8px; font-size: 1.3em; font-family: "Lucida Grande", Verdana, Arial, "Bitstream Vera Sans", sans-serif; font-weight: bold; color: #333; }
    </style>
    <?php
}
add_action( 'wp_head', 'wpmu_activate_stylesheet' );

get_header();
?>



插件下载:et_highlighter51.zip 备份链接:http://pan.baidu.com/s/1jGvqycI

欢迎大家下载使用,转载请注明出处,谢谢. Powered By Mrxn  https://mrxn.net

标签: 代码 php emlog

版权所有:Mrxn's Blog
文章标题:emlog插件 ---- SyntaxHighlighter 代码高亮2.2更新
除非注明,文章均为 Mrxn's Blog 原创,请勿用于任何商业用途,转载请注明作者和出处 Mrxn's Blog

扫描二维码,在手机上阅读

推荐阅读:

评论:
avatar
一一得一 2015-10-23 09:41
代码是另一门外语。。。。。。。。
commentator
Mrxn 2015-10-23 18:05
@一一得一:是的!
avatar
keen8 2015-10-22 16:58
不错不错,多谢分享
commentator
Mrxn 2015-10-23 18:09
@keen8:不客气
avatar
佛山铝门厂 2015-10-21 10:32
这个一看就眼花
commentator
Mrxn 2015-10-21 17:34
@佛山铝门厂:这还眼花。。。
avatar
清风 2015-10-21 09:22
多几种风格就好了。
commentator
Mrxn 2015-10-21 17:34
@清风:嗯
avatar
李明 2015-10-19 05:53
我又来了。
commentator
Mrxn 2015-10-19 20:49
@李明:感谢来访!已回访
commentator
李明 2015-10-30 20:18
@Mrxn:谢谢支持!
commentator
Mrxn 2015-10-30 20:55
@李明:不客气!
avatar
起名烦 2015-09-13 00:58
这个代码高亮插件真好用,谢谢了。
commentator
Mrxn 2015-09-14 17:10
@起名烦:能帮到你们就好
avatar
李明 2015-08-05 06:36
我也用这插件,效果真不错。
commentator
Mrxn 2015-08-05 10:14
@李明:嗯 哈哈 感谢回访
avatar
flippy 2015-07-26 15:34
emlog很精简
commentator
Mrxn 2015-07-26 16:13
@flippy:是的 很精简
avatar
笑忘书 2015-07-26 10:18
这个可以把pre的class名精简点吧,<pre class="brush: html;auto-links: false;">,之前用的是<pre class="sh_html">,这种不错,看着很清楚,
commentator
Mrxn 2015-07-26 13:29
@笑忘书:o_o 是的 可以精简的 嘿嘿 我懒就不行动了
avatar
全网目录 2015-07-26 07:42
很好用的JS
commentator
Mrxn 2015-07-26 13:14
@全网目录:嗯 是很好用