Title: Prism Syntax Highlighter for WordPress
Author: Nico
Published: <strong>20 Tháng 4, 2014</strong>
Last modified: 2 Tháng 10, 2016

---

Tìm kiếm plugin

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

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

# Prism Syntax Highlighter for WordPress

 Bởi [Nico](https://profiles.wordpress.org/nico23/)

[Tải về](https://downloads.wordpress.org/plugin/prism.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/prism/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/prism/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/prism/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/prism/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/prism/)

## Mô tả

Despite two plugins already on wordpress.org I decided to write my own from scratch.
The result is a minimalistic but powerful plugin with only ~250 lines of PHP.

 * Supports every possible Prism configuration.
 * Adds TinyMCE dropdown lost for `<code class="language-xxx"> and <pre class="language-
   xxx">` for bash, css, js, markup, php, scss. (I can make a filter if you want
   to add more.)
 * Does not load prism on every page, only when needed.
 * Supports automatic detection of prism HTML.
 * Supports displaying code from custom fields with `[prism]` shortcode.
 * Developers may use the `prism` handle to enqueue the pre-registered script and
   style.
 * Has admin editor button for quick shortcode template snippet.
 * Has no options page by design.
 * **Read more ->** [Prism Syntax Highlighter for WordPress](http://nextgenthemes.com/plugins/prism-syntax-highlighter-for-wordpress/)

Bundled Prism Version (2016-09-17)

Link: http://prismjs.com/download.html?themes=prism-okaidia&languages=markup+css
+clike+javascript+bash+less+php&plugins=line-highlight+line-numbers+wpd+show-language

Skin: Okaida

Languages

 * Markup
 * CSS
 * C-like
 * JavaScript
 * Bash
 * PHP
 * Sass (Scss)

Plugins

 * Line Highlight
 * Line Numbers
 * WebPlatform Docs
 * Show Language

## Cài đặt

No idea how.

## Hỏi đáp

  Will the data mining ever end?

What data mining?

  More!

[K](http://nextgenthemes.com/plugins/prism-syntax-highlighter-for-wordpress/)

## Đánh giá

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

### 󠀁[Not working](https://wordpress.org/support/topic/not-working-2559/)󠁿

 [all4wp](https://profiles.wordpress.org/all4wp/) 13 Tháng 6, 2018

Not working.

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

### 󠀁[Doesn’t work](https://wordpress.org/support/topic/doesnt-work-1674/)󠁿

 [Mark](https://profiles.wordpress.org/encryptdesigns/) 15 Tháng 8, 2017

Doesn’t work, which is too bad 🙁

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

### 󠀁[Works Well, and is Customizable by people who are somewhat savvy.](https://wordpress.org/support/topic/works-well-and-is-customizable-by-people-who-are-somewhat-savvy/)󠁿

 [dirkmittler](https://profiles.wordpress.org/dirkmittler/) 7 Tháng 5, 2017

I find that this plugin does what it’s supposed to do, and then some. Pity that 
often, I do not write code which is very serious, because if I did, then this plugin
would allow me to blog about that code in style. 🙂 The instructions should be followed
however, to download the JS and CSS Files from the prescribed Web-site, suggested
by the plugin author, and to create a directory wherever our blog has its ‘uploads’
folder, so that a subdirectory exists with the name ‘…/uploads/prism/’ , and then
to put those two customized files into that directory. This does not strike me as
complicated, but fulfills the promise that the color scheme etc. can be customized.
That version of the plugin will be used for the public version of our blog, while
the built-in version of the files will be used in our editor preview panel. Dirk

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

### 󠀁[works great](https://wordpress.org/support/topic/works-great-1511/)󠁿

 [bendim](https://profiles.wordpress.org/bendim/) 9 Tháng 10, 2016

It works great thx. Please add json.

 [ Đọc tất cả 7 đánh giá ](https://wordpress.org/support/plugin/prism/reviews/)

## Người đóng góp & Lập trình viên

“Prism Syntax Highlighter for WordPress” là mã nguồn mở. Những người sau đã đóng
góp vào plugin này.

Những người đóng góp

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

[Dịch “Prism Syntax Highlighter for WordPress” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/prism)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/prism/), check out [SVN repository](https://plugins.svn.wordpress.org/prism/),
hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/prism/)
qua [RSS](https://plugins.trac.wordpress.org/log/prism/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

### 1.1.0 – 2016-09-18

 * Updated bundled prism.js.
 * Added quotes to the shortcode included with the buttin click.
 * Always scan archives, abodon the define switch.
 * Added TinyMCE dropdown styles to style `<code>` and `<pre>` tags with language-
   xxx classes.

### 1.0.1

 * Added SVG icon for plugin installer

### 1.0.0

 * Updated bundled Prism version

### 0.9.6

 * Fix: Missing data-manual output

### 0.9.5

 * Improved: WTFAQ
 * Fix: Screenshots

### 0.9.0

 * Release

## Meta

 *  Phiên bản **1.1.1**
 *  Cập nhật lần cuối **10 năm trước**
 *  Số lượt cài đặt **50+**
 *  Phiên bản WordPress ** 3.5.0 hoặc cao hơn **
 *  Đã kiểm tra lên đến **4.6.30**
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/prism/)
 * Thẻ
 * [code](https://vi.wordpress.org/plugins/tags/code/)[highlighter](https://vi.wordpress.org/plugins/tags/highlighter/)
   [prism](https://vi.wordpress.org/plugins/tags/prism/)[prismjs](https://vi.wordpress.org/plugins/tags/prismjs/)
   [syntax](https://vi.wordpress.org/plugins/tags/syntax/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/prism/advanced/)

## Đánh giá

 3.3 trên 5 sao.

 *  [  4 5-star reviews     ](https://wordpress.org/support/plugin/prism/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/prism/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/prism/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/prism/reviews/?filter=2)
 *  [  3 1-star reviews     ](https://wordpress.org/support/plugin/prism/reviews/?filter=1)

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

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/prism/reviews/)

## Những người đóng góp

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

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/prism/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=UNDSCARF3ZPBC)