Title: WP Code Highlight
Author: acalbert
Published: <strong>27 ກັນຍາ 2011</strong>
Last modified: 2 ສິງຫາ 2014

---

ຄົ້ນຫາປລັກອິນ

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ WordPress 3 ເວີຊັນຫຼັກຫຼ້າສຸດ**. ມັນອາດຈະ
ບໍ່ໄດ້ຮັບການເບິ່ງແຍງ ຫຼື ສະໜັບສະໜູນອີກຕໍ່ໄປ ແລະ ອາດມີບັນຫາການເຮັດວຽກຮ່ວມກັນເມື່ອ
ໃຊ້ກັບ WordPress ເວີຊັນທີ່ໃໝ່ກວ່າ.

![](https://s.w.org/plugins/geopattern-icon/wp-code-highlight.svg)

# WP Code Highlight

 ໂດຍ [acalbert](https://profiles.wordpress.org/acalbert/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/wp-code-highlight.1.2.9.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/wp-code-highlight/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/wp-code-highlight/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/wp-code-highlight/#installation)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/wp-code-highlight/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/wp-code-highlight/)

## ຄຳອະທິບາຍ

WP Code Highlight provides syntax highlighting of source code snippets and it is
W3C valid.
 Wrap code blocks with `<pre>` and `</pre>` It provides a code button(
HTML editor) to help you insert code in articles easily. You don’t need to specify
the language since WP Code Highlight will guess, all languages are supported. You
can put line numbers in your code if you need. There are 4 highlight themes, you
can choose from them or display by random. It can also load `wp-code-highlight.css`
from current wordpress theme directory. It can delete its own options, so it is 
also a green plugin !

#### Basic Usage

 1. Download and extract `wp-code-highlight.zip` to `wp-content/plugins/`
 2. Activate the plugin through the “Plugins” menu in WordPress
 3. “Dashboard”->”Users”->”Your Profile”->”Disable the visual editor when writing”
 4. “Dashboard”->”Settings”->”WP Code Highlight”
 5. Wrap code blocks with `<pre>` and `</pre>` (It provides a code button in the HTML
    editor)
 6. You don’t need to specify the language since WP Code Highlight will guess, all 
    languages are supported
 7. It can also load `wp-code-highlight.css` from current wordpress theme directory

#### More Information

For more information of this plugin, please visit: [Plugin Homepage](http://boliquan.com/wp-code-highlight/).

Related Links:

 * [WP Code Highlight (FAQ)](http://boliquan.com/wp-code-highlight/) | [Download](https://wordpress.org/plugins/wp-code-highlight/)
 * [WP Clean Up](http://boliquan.com/wp-clean-up/) | [Download](https://wordpress.org/plugins/wp-clean-up/)
 * [WP SMTP](http://boliquan.com/wp-smtp/) | [Download](https://wordpress.org/plugins/wp-smtp/)
 * [WP Slug Translate](http://boliquan.com/wp-slug-translate/) | [Download](https://wordpress.org/plugins/wp-slug-translate/)
 * [WP Anti Spam](http://boliquan.com/wp-anti-spam/) | [Download](https://wordpress.org/plugins/wp-anti-spam/)
 * [YG Share](http://boliquan.com/yg-share/) | [Download](https://wordpress.org/plugins/yg-share/)
 * [BoLiQuan](http://boliquan.com/)
 * [玻璃泉](http://boliquan.com/)
 * [夜光](http://boliquan.com/)
 * [YLife](http://boliquan.com/ylife/) | [Download](http://code.google.com/p/ylife/downloads/list)

## ພາບໜ້າຈໍ

[⌊Admin page screenshot⌉⌊Admin page screenshot⌉[

Admin page screenshot

[⌊Code Button⌉⌊Code Button⌉[

Code Button

## ການຕິດຕັ້ງ

 1. Download and extract `wp-code-highlight.zip` to `wp-content/plugins/`
 2. Activate the plugin through the “Plugins” menu in WordPress
 3. “Dashboard”->”Users”->”Your Profile”->”Disable the visual editor when writing”
 4. “Dashboard”->”Settings”->”WP Code Highlight”
 5. Wrap code blocks with `<pre>` and `</pre>` (It provides a code button in the HTML
    editor)
 6. You don’t need to specify the language since WP Code Highlight will guess, all 
    languages are supported
 7. It can also load `wp-code-highlight.css` from current wordpress theme directory

## ຄຳຖາມທີ່ພົບເລື້ອຍ

You can sumbit it in http://boliquan.com/wp-code-highlight/

## ການຣີວິວ

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

### 󠀁[Broke my Site – PHP 7 problem.](https://wordpress.org/support/topic/broke-my-site-php-7-problem/)󠁿

 [scbritton](https://profiles.wordpress.org/scbritton/) 2 ກັນຍາ 2019

This plugin was working fine, until some point in the last 12 months. I checked 
an old post and discovered that my content was no longer displaying, and discovered
this plugin was the cause. Upon deactivation, my content reappeared. So, like others
have posted, it doesn’t seem to work with PHP 7

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

### 󠀁[Doesn’t work with PHP 7.1](https://wordpress.org/support/topic/doesnt-work-with-php-7-1-2/)󠁿

 [Niraj Shah](https://profiles.wordpress.org/nirajshah-1/) 3 ພຶດສະພາ 2018

I used to use this plugin on my site, but since upgrading to PHP 7.1, this plugin
no longer works, therefore I’ve uninstalled it.

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

### 󠀁[Does its job, but not in PHP7](https://wordpress.org/support/topic/does-its-job-but-not-in-php7/)󠁿

 [websupporter](https://profiles.wordpress.org/websupporter/) 19 ມັງກອນ 2017

I was using it quite a bit. After a while, I forgot about it. Out of convienience
I started to use gist and embedded them. There are good reasons not to do this and
for those reasons this plugin is suitable. I do not quite remember, I think I abandoned
this plugin, since I use a lot of < and > and there is no fun doing so with the 
WP Editor. Must have been something like this, but not really related to this plugin.
I switched to PHP7 and my blog posts seem to disappear. I found out, this plugin
does not work with PHP7. No worries, your posts are not lost, but they are not displayed
properly. When you deactivate the plugin, everything works as it is supposed to.
If you want to use this plugin and PHP7 you might want to have a look into this 
comment by a friendly user: https://wordpress.org/support/topic/this-plugin-does-
not-support-php7/#post-8043051 Would be great, if the plugin would get updated though
🙂

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

### 󠀁[Didn’t work for PHP 7.0](https://wordpress.org/support/topic/didnt-work-for-php-7-0/)󠁿

 [Just a Wordpress User](https://profiles.wordpress.org/xrvel/) 23 ຕຸລາ 2016

Didn’t work for PHP 7.0

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

### 󠀁[This plugin does not support PHP7](https://wordpress.org/support/topic/this-plugin-does-not-support-php7/)󠁿

 [hlx98007](https://profiles.wordpress.org/hlx98007/) 3 ກັນຍາ 2016 1 ການຕອບກັບ

As titled. Disable or remove this plugin with using with PHP7

 [ ອ່ານການຣີວິວທັງໝົດ 14 ລາຍການ ](https://wordpress.org/support/plugin/wp-code-highlight/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“WP Code Highlight” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມ
ໃນການພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

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

[ແປ “WP Code Highlight” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/wp-code-highlight)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/wp-code-highlight/), ກວດເບິ່ງ
[ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/wp-code-highlight/), ຫຼື ຕິດຕາມ 
[ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/wp-code-highlight/) ຜ່ານ
[RSS](https://plugins.trac.wordpress.org/log/wp-code-highlight/?limit=100&mode=stop_on_copy&format=rss).

## ບັນທຶກການປ່ຽນແປງ

#### 1.2.9

 * Some optimization

#### 1.2.8

 * Updated newline handling to handle fixes to IE 10
 * Remove unused JS files
 * Optimize CSS
 * Register Setting

#### 1.2.7

 * Some optimization

#### 1.2.6

 * Corrected the bugs of ‘Code Button’, due to the quicktags was changed since WordPress
   3.3

#### 1.2.5

 * Corrected the slashes bugs
 * Add settings link

#### 1.2.4

 * Detailed usage

#### 1.2.3

 * Corrected some bugs,thanks to ‘ihacklog.com’

#### 1.2.2

 * Add languages packs

#### 1.2.1

 * Corrected some IE6 bugs

#### 1.2.0

 * Html special chars can be displayed
 * Some optimize

#### 1.1.9

 * Some optimize
 * Corrected some bugs of Line Numbers

#### 1.1.8

 * Some optimize
 * Corrected some mistakes

#### 1.1.7

 * Some optimize
 * Corrected some mistakes

#### 1.1.6

 * First release.

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **1.2.9**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **12 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **200+**
 *  ເວີຊັນ WordPress ** 2.7 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **3.9.40**
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/wp-code-highlight/)
 * ແທັກ
 * [Code Highlight](https://lo.wordpress.org/plugins/tags/code-highlight/)[sourcecode](https://lo.wordpress.org/plugins/tags/sourcecode/)
   [wordpress code highlight](https://lo.wordpress.org/plugins/tags/wordpress-code-highlight/)
   [wp code](https://lo.wordpress.org/plugins/tags/wp-code/)[wp code highlight](https://lo.wordpress.org/plugins/tags/wp-code-highlight/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/wp-code-highlight/advanced/)

## ການໃຫ້ຄະແນນ

 3.9 ຈາກທັງໝົດ 5 ດາວ.

 *  [  ການວິຈານ 5 ດາວ ຈຳນວນ 7 ລາຍການ     ](https://wordpress.org/support/plugin/wp-code-highlight/reviews/?filter=5)
 *  [  ການວິຈານ 4 ດາວ ຈຳນວນ 3 ລາຍການ     ](https://wordpress.org/support/plugin/wp-code-highlight/reviews/?filter=4)
 *  [  ການວິຈານ 3 ດາວ ຈຳນວນ 1 ລາຍການ     ](https://wordpress.org/support/plugin/wp-code-highlight/reviews/?filter=3)
 *  [  ການວິຈານ 2 ດາວ ຈຳນວນ 1 ລາຍການ     ](https://wordpress.org/support/plugin/wp-code-highlight/reviews/?filter=2)
 *  [  ການວິຈານ 1 ດາວ ຈຳນວນ 2 ລາຍການ     ](https://wordpress.org/support/plugin/wp-code-highlight/reviews/?filter=1)

[ການທົບທວນຂອງທ່ານ](https://wordpress.org/support/plugin/wp-code-highlight/reviews/#new-post)

[ເບິ່ງທັງໝົດ ການຣີວິວ](https://wordpress.org/support/plugin/wp-code-highlight/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

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

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/wp-code-highlight/)

## ບໍລິຈາກ

ເຈົ້າຕ້ອງການສະໜັບສະໜູນການພັດທະນາຂອງປລັກອິນນີ້ບໍ່?

 [ ບໍລິຈາກໃຫ້ປລັກອິນນີ້ ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SCWY6NPFRR8EY)