Title: Lite Syntax Highlighting
Author: z-17
Published: <strong>2016 年 1 月 4 日</strong>
Last modified: 2019 年 3 月 24 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/lite-syntax-highlighting.svg)

# Lite Syntax Highlighting

 作者：[z-17](https://profiles.wordpress.org/z-17/)

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

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

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

## 描述

The Plugin makes it easy to add syntax highlighting of code in your blog. You can
use shortcodes in posts and comments and also html tags everywhere.

It adds some buttons to editor, which generate special short code tags to turn on
syntax highlighting: [slh lang=”php”] for example. And you can use html tags, example:
<pre class=”slh__html”></pre>

The plugin supports highlighting:

 * 菲律宾比索（PHP）
 * 编辑 HTML 源码
 * CSS
 * Java脚本
 * C

Languages:

 * 英文
 * Русский

Styles:

 * 发光
 * 暗色

## 屏幕截图

[⌊Example for 菲律宾比索（PHP） code⌉⌊Example for 菲律宾比索（PHP） code⌉[

Example for 菲律宾比索（PHP） code

[⌊Settings page⌉⌊Settings page⌉[

Settings page

[⌊编辑器⌉⌊编辑器⌉[

编辑器

[⌊暗色 style⌉⌊暗色 style⌉[

暗色 style

## 安装

 1. Upload the plugin files to the “/wp-content/plugins/” directory or install the 
    plugin through the WordPress plugins screen directly..
 2. Activate the plugin through the “Plugins” menu in WordPress.
 3. Use the Settings -> Syntax Highlighting screen to configure the plugin

## 常见问题

  What code is highlighted?

PHP, HTML, CSS, JavaScript and C

  How can I help?

There are public repository: https://github.com/z17/Lite-Syntax-Highlighting
 Welcome!

  How can I use it?

You can use special buttons in WordPress post editor, or use shortcodes like [slh
lang=”php”] to create block of code.
 Also you can just write html tags <pre class
=”slh__php”> CODE </pre> where you want.

  How can I ask something?

Open new topic in support section or you can write me email, admin@blweb.ru

## 评价

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

### 󠀁[easy and light !](https://wordpress.org/support/topic/easy-and-light-3/)󠁿

 [May](https://profiles.wordpress.org/mokoan/) 2016 年 12 月 27 日 1 回复

Very easy to use. Thank you 🙂

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

### 󠀁[Good and easy to use.](https://wordpress.org/support/topic/good-and-easy-to-use-17/)󠁿

 [Jatupon Rattanapanop](https://profiles.wordpress.org/emilybkk/) 2016 年 9 月 3
日 1 回复

It is so simple and as my site don’t need a ton of feature I only post css and php
little bit. This plugin just fit my need. Thank you so much.

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

## 贡献者及开发者

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

贡献者

 *   [ z-17 ](https://profiles.wordpress.org/z-17/)

「Lite Syntax Highlighting」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/lite-syntax-highlighting/contributors)
为本插件所做的贡献。

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

### 对开发感兴趣吗?

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

## 更新日志

#### 0.5

 * add support short codes
 * short codes also work in comments

#### 0.4

 * add basic highlight for C language
 * some refactor

#### 0.3

 * add dark style

#### 0.2

 * Add languages support

#### 0.1

 * Initial release.

## 额外信息

 *  版本 **0.5**
 *  最后更新：**7 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **5.1.22**
 *  语言
 * [English (US)](https://wordpress.org/plugins/lite-syntax-highlighting/) 、 [Japanese](https://ja.wordpress.org/plugins/lite-syntax-highlighting/)
   和 [Russian](https://ru.wordpress.org/plugins/lite-syntax-highlighting/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/lite-syntax-highlighting)
 * 标签
 * [code highlighter](https://cn.wordpress.org/plugins/tags/code-highlighter/)[highlighter](https://cn.wordpress.org/plugins/tags/highlighter/)
   [highlighting](https://cn.wordpress.org/plugins/tags/highlighting/)[syntax](https://cn.wordpress.org/plugins/tags/syntax/)
   [syntax highlighter](https://cn.wordpress.org/plugins/tags/syntax-highlighter/)
 *  [高级视图](https://cn.wordpress.org/plugins/lite-syntax-highlighting/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ z-17 ](https://profiles.wordpress.org/z-17/)

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](https://blweb.ru)