Title: Code Prettify
Author: volca
Published: <strong>2010 ལོའི་ཟླ 12 ཚེས 3 ཉིན།</strong>
Last modified: 2022 ལོའི་ཟླ 10 ཚེས 12 ཉིན།

---

མཐུད་སྣེ་བཤེར་འཚོལ།

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

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# Code Prettify

 རྩོམ་པ་པོ། [volca](https://profiles.wordpress.org/volca/)

[ཕབ་ལེན།](https://downloads.wordpress.org/plugin/code-prettify.zip)

 * [ཞིབ་ཕྲ།](https://bo.wordpress.org/plugins/code-prettify/#description)
 * [གདེང་འཇོག](https://bo.wordpress.org/plugins/code-prettify/#reviews)
 *  [སྒྲིག་འཇུག](https://bo.wordpress.org/plugins/code-prettify/#installation)
 * [ཡར་རྒྱས།](https://bo.wordpress.org/plugins/code-prettify/#developers)

 [རམ་འདེགས།](https://wordpress.org/support/plugin/code-prettify/)

## ཞིབ་བརྗོད།

Uses a customized version of the [Code Prettify library](https://github.com/kasparsd/code-prettify-lib/pull/1)
to support local styles and scripts. Plugin applies code highlighting automatically
to all `<pre>` tags on the page.

**Compatible with Gutenberg and doesn’t lock you in with specific markup requirements.**

#### Development

Plugin development [on GitHub](https://github.com/kasparsd/code-prettify).

#### Credits

Created and maintained by [Kaspars Dambis](https://kaspars.net). All of my open 
source work is available [on GitHub](https://github.com/kasparsd).

Use Contact Form 7? [Storage for Contact Form 7](http://preseto.com/go/cf7-storage)
is my commercial plugin (GPL license) for storing all form submissions in your WordPress
database.

Cover photo by [Yuri Samoilov](https://www.flickr.com/photos/110751683@N02/13334080323/)

## གཏུབ་རེིས།

 * [[
 * Syntax highlighting applied to a `<pre>` block and inline `<code>` segments.

## སྒྲིག་འཇུག

Simply upload the plugin and active it. It works out of the box and doesn’t have
any configuration options.

## FAQ

None, yet.

## གདེང་འཇོག

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

### 󠀁[OBrigado, era o que eu precisava](https://wordpress.org/support/topic/obrigado-era-o-que-eu-precisava/)󠁿

 [fbmed](https://profiles.wordpress.org/fbmed/) 2025 ལོའི་ཟླ 3 ཚེས 18 ཉིན།

Funcionou perfeito, era o que eu precisa, muito facil e prático.Para ficar mais 
completo, criei uma função que cria um botão copiar.OBrigado

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

### 󠀁[It works perfectly !!!](https://wordpress.org/support/topic/it-works-perfectly-154/)󠁿

 [Anonymous User](https://profiles.wordpress.org/anonymized-21100648/) 2023 ལོའི་
ཟླ 10 ཚེས 10 ཉིན།

I hope the developer continues to update it to avoid compatibility issues with future
versions of WordPress.

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

### 󠀁[Really impressed](https://wordpress.org/support/topic/really-impressed-28/)󠁿

 [hanopcan](https://profiles.wordpress.org/hanopcan/) 2022 ལོའི་ཟླ 3 ཚེས 30 ཉིན།

Used with a block-based theme and it worked perfectly. Love that there is no configuration
required and it auto-detects <code> and <pre> tags. Great plugin, thank you!

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

### 󠀁[Awesome Blossom](https://wordpress.org/support/topic/awesome-blossom/)󠁿

 [mezubeen](https://profiles.wordpress.org/mezubeen/) 2020 ལོའི་ཟླ 4 ཚེས 26 ཉིན།

This plugin is exactly what I was looking for, just one friendly suggestion please
add a toggle to switch themes to dark. or add a setting where we can do that. thank
a lot for this neat and clean plugin

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

### 󠀁[The best plugin for syntax highlighting!](https://wordpress.org/support/topic/the-best-plugin-for-syntax-highlighting-2/)󠁿

 [rahmanfadhil](https://profiles.wordpress.org/rahmanfadhil/) 2020 ལོའི་ཟླ 3 ཚེས
4 ཉིན།

Very simple yet powerful!

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

### 󠀁[Good replacement](https://wordpress.org/support/topic/good-replacement/)󠁿

 [Juergen Schulze](https://profiles.wordpress.org/1manfactory/) 2019 ལོའི་ཟླ 11 
ཚེས 13 ཉིན།

Finally a plugin that works with the outdated “Crayon Syntax Highlighter” plugin
So I don’t have to mess around with every post.

 [ གདེང་འཇོག 18 ཡོངས་སུ་ཀློག ](https://wordpress.org/support/plugin/code-prettify/reviews/)

## བྱས་རྗེས་འཇོག་མཁན། & གསར་འབྱེད་པ།

“Code Prettify” is open source software. The following people have contributed to
this plugin.

བྱས་རྗེས་འཇོག་མཁན།

 *   [ volca ](https://profiles.wordpress.org/volca/)
 *   [ Kaspars ](https://profiles.wordpress.org/kasparsd/)

[ཁྱེད་ཀྱི་སྐད་ཡིག་ནང་ལ་ “Code Prettify” ཡིག་སྒྱུར་བྱོས།](https://translate.wordpress.org/projects/wp-plugins/code-prettify)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/code-prettify/), check
out the [SVN repository](https://plugins.svn.wordpress.org/code-prettify/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/code-prettify/) 
by [RSS](https://plugins.trac.wordpress.org/log/code-prettify/?limit=100&mode=stop_on_copy&format=rss).

## དག་བཅོས་ཉིན་ཐོ།

#### 1.5.1 (November 8, 2021)

 * Fix the deprecation notice for how the data is passed to the script.
 * Mark as tested with WordPress 5.8.

#### 1.5.0 (April 19, 2020)

 * Preload the `prettify.css` file for performance improvements.
 * Add WordPress coding standards checks.
 * Add support for Composer install.

#### 1.4.2 (January 14, 2019)

 * Switch to legacy PHP array syntax for better compatibility.

#### 1.4.1 (December 21, 2018)

 * Add a trailing semicolon to all JS files to support concatenation.

#### 1.4.0 (December 20, 2018)

 * Update the Prettify library.
 * Don’t highlight standalone `<code>` blocks without the `<pre>` wrapper.
 * Mark as tested with WordPress 5.0.

#### 1.3.4

 * Update the Prettify library.
 * Ensure that Prettify styles are applied to the contents of `<pre>` and `<code
   >` elements.

#### 1.3.3

 * Update the Prettify library.
 * Highlight `<code>` blocks too.

#### 1.0

 * Initial release.

## ཟུར་བརྗོད།

 *  Version **1.5.1**
 *  Last updated **ལོ 4 སྔོན།**
 *  Active installations **1,000+**
 *  WordPress version ** 3.0 ཡང་ན་དེ་ལས་མཐོ་བ། **
 *  Tested up to **6.0.11**
 *  Language
 * [English (US)](https://wordpress.org/plugins/code-prettify/)
 * Tags
 * [code](https://bo.wordpress.org/plugins/tags/code/)[Highlight](https://bo.wordpress.org/plugins/tags/highlight/)
   [highlighter](https://bo.wordpress.org/plugins/tags/highlighter/)[highlighting](https://bo.wordpress.org/plugins/tags/highlighting/)
   [pre](https://bo.wordpress.org/plugins/tags/pre/)
 *  [མཐོ་རིམ་མཐོང་སྣང་།](https://bo.wordpress.org/plugins/code-prettify/advanced/)

## གདེང་འཇོག

 5 out of 5 stars.

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

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

[See all reviews](https://wordpress.org/support/plugin/code-prettify/reviews/)

## བྱས་རྗེས་འཇོག་མཁན།

 *   [ volca ](https://profiles.wordpress.org/volca/)
 *   [ Kaspars ](https://profiles.wordpress.org/kasparsd/)

## རམ་འདེགས།

Got something to say? Need help?

 [རམ་འདེགས་གླེང་སྟེགས་ལ་ལྟ།](https://wordpress.org/support/plugin/code-prettify/)