Title: Code Syntax Highlighter
Author: kartikaykanojia
Published: <strong>2018 年 8 月 30 日</strong>
Last modified: 2018 年 8 月 30 日

---

搜索插件

![](https://ps.w.org/code-syntax-highlighter/assets/banner-772x250.png?rev=1933160)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/code-syntax-highlighter/assets/icon-256x256.png?rev=1933160)

# Code Syntax Highlighter

 作者：[kartikaykanojia](https://profiles.wordpress.org/kartikaykanojia/)

[下载](https://downloads.wordpress.org/plugin/code-syntax-highlighter.zip)

 * [详情](https://cn.wordpress.org/plugins/code-syntax-highlighter/#description)
 * [评价](https://cn.wordpress.org/plugins/code-syntax-highlighter/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/code-syntax-highlighter/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/code-syntax-highlighter/#developers)

 [支持](https://wordpress.org/support/plugin/code-syntax-highlighter/)

## 描述

A code syntax highlighter an easy to use source code embedding in wordpress with
different(55) themes with 172 languages.
 It uses dynamic script loading to load
only essential javascript to render code syntax highliting. It uses most powerfull
open source library CodeMirror as engine.

**Features**

 * Dynamic script loading to minimize load time and http call
 * 172 language support
 * 172 shortcodes
 * Shortcode picker in editor
 * Lightweight language selector
 * Multiple Theme support
 * 55 Themes
 * Theme manager
 * Theme uploader (Upload your own theme)
 * Compatible with all WordPress themes
 * Fast and secure
 * Cross browser compatible
 * Line numbering
 * A powerful, composable language system
 * Bracket and tag matching
 * Line selector
 * Able to resize to fit content

**Minimum system requirements:**

 * [PHP](https://php.net) version **5.2** or higher.
 * [MySQL](https://www.mysql.com) version **5.0** or higher.

**Recommended system requirements:**

 * [PHP](https://php.net) version **7.0** or higher.
 * [MySQL](https://www.mysql.com) version **5.6** or higher.

**Credits**

 * The banner of plugin is a copyrighted image created by the [Briskjab](http://www.briskjab.com).(
   C) All rights reserved.
 * [CodeMirror](https://codemirror.net/) is an open-source project shared under 
   the [MIT license](https://codemirror.net/LICENSE).

## 屏幕截图

 * [[
 * Plugin main settings page.
 * [[
 * Plugin theme settings page.
 * [[
 * Example of post with php,html,javascript,css code. “Material Design light” theme.
 * [[
 * Example of post with php,html,javascript,css code. “Darcula” theme.
 * [[
 * Example of post with php,html,javascript,css code. “Ambience” theme.
 * [[
 * Edit page TinyMce shortcode button.

## 安装

Automatically via WordPress Admin Area:

 1. Log in to Admin Area of your WordPress website.
 2. Go to “`Plugins`” -> “`Add New`“.
 3. Find this plugin and click install.
 4. Activate this plugin through the “`Plugins`” tab.

Manually via FTP access:

 1. Download a copy (ZIP file) of this plugin from WordPress.org.
 2. Unzip the ZIP file.
 3. Upload the unzipped catalog to your website’s plugin directory (`/wp-content/plugins/`).
 4. Log in to Admin Area of your WordPress website.
 5. Activate this plugin through the “`Plugins`” tab.

## 常见问题

  Installation Instructions

Automatically via WordPress Admin Area:

 1. Log in to Admin Area of your WordPress website.
 2. Go to “`Plugins`” -> “`Add New`“.
 3. Find this plugin and click install.
 4. Activate this plugin through the “`Plugins`” tab.

Manually via FTP access:

 1. Download a copy (ZIP file) of this plugin from WordPress.org.
 2. Unzip the ZIP file.
 3. Upload the unzipped catalog to your website’s plugin directory (`/wp-content/plugins/`).
 4. Log in to Admin Area of your WordPress website.
 5. Activate this plugin through the “`Plugins`” tab.

  Q. Can i upload my own designed theme on this plugin ?

A. Yes, by using code syntax highighter setting you can upload your own theme.

  Q. Does this plugin load all languages on runtime ?

A. No, it only loads required languages scripts and addons.

  Q. My wordpress site only needed limited set of languages, is there anyway of 
limiting loading of languages ?

A. Yes, in code syntax highlighter setting check on ‘load limited languages’.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Code Syntax Highlighter」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ kartikaykanojia ](https://profiles.wordpress.org/kartikaykanojia/)

[帮助将「Code Syntax Highlighter」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/code-syntax-highlighter)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/code-syntax-highlighter/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/code-syntax-highlighter/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/code-syntax-highlighter/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/code-syntax-highlighter/)。

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**8 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 3.9 或更高版本 **
 *  已测试的最高版本为 **4.9.29**
 *  PHP 版本 ** 5.2 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/code-syntax-highlighter/)
 * 标签
 * [Codemirror](https://cn.wordpress.org/plugins/tags/codemirror/)[hightlight](https://cn.wordpress.org/plugins/tags/hightlight/)
   [snippet](https://cn.wordpress.org/plugins/tags/snippet/)[syntax highlighter](https://cn.wordpress.org/plugins/tags/syntax-highlighter/)
   [syntax highlighting](https://cn.wordpress.org/plugins/tags/syntax-highlighting/)
 *  [高级视图](https://cn.wordpress.org/plugins/code-syntax-highlighter/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/code-syntax-highlighter/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/code-syntax-highlighter/reviews/)

## 贡献者

 *   [ kartikaykanojia ](https://profiles.wordpress.org/kartikaykanojia/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/code-syntax-highlighter/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.me/kartikaykanojia)