Title: Simple Syntax Highlighting
Author: gung
Published: <strong>2018 年 1 月 20 日</strong>
Last modified: 2018 年 5 月 25 日

---

搜索插件

![](https://ps.w.org/simple-syntax-highlighting/assets/banner-772x250.png?rev=1806271)

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

![](https://ps.w.org/simple-syntax-highlighting/assets/icon-128x128.png?rev=1806247)

# Simple Syntax Highlighting

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

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

 * [详情](https://cn.wordpress.org/plugins/simple-syntax-highlighting/#description)
 * [评价](https://cn.wordpress.org/plugins/simple-syntax-highlighting/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/simple-syntax-highlighting/#developers)

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

## 描述

Simple Syntax Highlighting (SSH), simple, clean and lighweight plugin to integrate
highlight.js into WordPress. highlightjs has automatic language detection an turn
on syntax highlighting. You just need to select text than press button <ssh> or 
add the code into <pre> <code> </ code> </ pre> format.
 Credit: Highlight.js – 
https://highlightjs.org Line numbering plugin: https://github.com/wcoder/highlightjs-
line-numbers.js

Supports highlighting

 * Java
 * C
 * HTML
 * CSS
 * PHP
 * and more, up to 176 language, see: https://highlightjs.org/static/demo/

### Instalation

 1. Download plugin Simple Syntax Highlighting archive, than unzip it.
 2. Upload the “simple-sintax-highlighting” folder to the “wp-content/plugins” directory.
 3. Activate the plugin through “plugins” menu in WordPress dashboard.
 4. Open menu: Setting > Simple Syntax Highlighting to configure.

### Screenshoot

 1. Plugin Settings
 2. Editor

## 屏幕截图

 * [[
 * [[

## 常见问题

Q: How to use Simple Syntax Highlighting plugin?
 A: Paste yout code inside <pre
> <code> </ code> </ pre> or please see screenshot.

## 评价

![](https://secure.gravatar.com/avatar/cdda704fbc0d9c53c8c639c2affe6f23cda06f07b8974605b36ee3a0fe0dbd50?
s=60&d=retro&r=g)

### 󠀁[Doesn’t Work with TinyMCE Advanced](https://wordpress.org/support/topic/doesnt-work-with-tinymce-advanced/)󠁿

 [hisw0509](https://profiles.wordpress.org/hisw0509/) 2018 年 2 月 7 日 1 回复

<ssh> button works well on the default editor and I like it. However, when I activate
TinyMCE Advanced, one of the most popular WP plugins, <ssh> button doesn’t work 
as intended. It inserts tags in between every line. Until this is solved, I can’t
use this plugin because there are many code highlighting plugins with more functions
that works on text editing mode. I wanted to give this a shot because no other competitor
supports visual editing mode. I checked “Notify me of follow-up replies via email”
so that you can let me know when this plugin is compatible with TinyMCE Advanced,
or if the change is not possible on your side but on TinyMCE Advanced’s.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/simple-syntax-highlighting/reviews/)

## 贡献者及开发者

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

贡献者

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

[帮助将「Simple Syntax Highlighting」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/simple-syntax-highlighting)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.1

 * Fix line numbering
 * Support plugin TinyMCE Advanced
 * Update readme.txt

#### 1.0

 * Initial release.

## 额外信息

 *  版本 **1.1**
 *  最后更新：**8 年前**
 *  活跃安装数量 **50+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **4.9.29**
 *  语言
 * [English (US)](https://wordpress.org/plugins/simple-syntax-highlighting/)
 * 标签
 * [code](https://cn.wordpress.org/plugins/tags/code/)[highlighter](https://cn.wordpress.org/plugins/tags/highlighter/)
   [SSH](https://cn.wordpress.org/plugins/tags/ssh/)[syntax](https://cn.wordpress.org/plugins/tags/syntax/)
 *  [高级视图](https://cn.wordpress.org/plugins/simple-syntax-highlighting/advanced/)

## 评级

 4 星（最高 5 星）。

 *  [  0 条 5 星评价     ](https://wordpress.org/support/plugin/simple-syntax-highlighting/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/simple-syntax-highlighting/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/simple-syntax-highlighting/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/simple-syntax-highlighting/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/simple-syntax-highlighting/reviews/?filter=1)

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

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

## 贡献者

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

## 支持

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

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