Title: PrettyCode • Code syntax highlighting with CodeMirror
Author: maximebj
Published: <strong>8 مارس 2022</strong>
Last modified: 13 آوریل 2026

---

جستجوی افزونه‌ها

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

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

# PrettyCode • Code syntax highlighting with CodeMirror

 توسط [maximebj](https://profiles.wordpress.org/maximebj/)

[دانلود](https://downloads.wordpress.org/plugin/prettycode.2.0.2.zip)

 * [جزئیات](https://fa.wordpress.org/plugins/prettycode/#description)
 * [نقد و بررسی‌ها](https://fa.wordpress.org/plugins/prettycode/#reviews)
 *  [نصب](https://fa.wordpress.org/plugins/prettycode/#installation)
 * [توسعه](https://fa.wordpress.org/plugins/prettycode/#developers)

 [پشتیبانی](https://wordpress.org/support/plugin/prettycode/)

## توضیحات

The prettiest syntax highlighting block for the WordPress editor.
 Live edit your
code snippets in the admin with bracket matching, customize colors with more thant
50 themes (Base16, Monokai, Material, Zenburn, Hopscotch…). Compatible with major
languages: HTML, CSS, JS, JSX, Stylus, Sass, PHP, Python, C, C++, C#, Java, XML,
Shell, JSON, Go, Swift…

This block uses CodeMirror. You may have seen this block before on the Advanced 
Gutenberg Blocks plugins few years ago. It’s now an updated and standalone block.

### Third Party

This plugins uses some third party libraries:

 * WordPress create-block by gziolo – https://www.npmjs.com/package/@wordpress/create-
   block
 * CodeMirror – https://github.com/codemirror/CodeMirror
 * react-codemirror2 by scniro – https://github.com/scniro/react-codemirror2

A big thanks to their respective creators and maintainers!

## عکس‌های صفحه

[[

[[

## بلوک‌ها

این افزونه 1 بلوک ارائه می‌دهد.

 *   PrettyCode A code syntax highlighting block for your snippets of all major 
   languages.

## نصب

 1. Upload the plugin files to the `/wp-content/plugins/prettycode` directory, or install
    the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress
 3. Go to a post and click on ‘Add block’
 4. Search for ‘PrettyCode’

## سوالات متداول

### Which languages are available?

All major language are available: HTML, CSS, JS, JSX, Stylus, Sass, PHP, Python,
C, C++, C#, Java, XML, Shell, JSON, Go, Swift…

### Can I add more languages ?

Yes, by using the filter `prettycode_languages_list`.

### Can I customize the appearance?

Sure! You have access to 50+ dark and light themes like Base16, Monokai, Material,
Zenburn, Hopscotch…

### Can I contribute?

Yep! The public repository is right here: https://github.com/maximebj/prettycode.
plugin

## نقد و بررسی‌ها

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

### 󠀁[Parfait](https://wordpress.org/support/topic/parfait-335/)󠁿

 [Guillaume TURPIN](https://profiles.wordpress.org/guillaumeturpin/) 8 مارس 2022

Merci d’avoir transposé le bloc en standalone, il était vraiment cool dans AGB.

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

### 󠀁[Code is poetry](https://wordpress.org/support/topic/code-is-poetry-5/)󠁿

 [Benjamin Denis](https://profiles.wordpress.org/rainbowgeek/) 8 مارس 2022

Really useful, I love it!

 [ خواندن تمامی 2 نقد و بررسی‌ ](https://wordpress.org/support/plugin/prettycode/reviews/)

## توسعه دهندگان و همکاران

“PrettyCode • Code syntax highlighting with CodeMirror” نرم افزار متن باز است. افراد
زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

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

“PrettyCode • Code syntax highlighting with CodeMirror” به 1 زبان ترجمه شده است.
با تشکر از [مترجمین](https://translate.wordpress.org/projects/wp-plugins/prettycode/contributors)
برای همکاری و کمک‌هایشان.

[ترجمه “PrettyCode • Code syntax highlighting with CodeMirror” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/prettycode)

### علاقه‌ مند به توسعه هستید؟

[کد را مرور کنید](https://plugins.trac.wordpress.org/browser/prettycode/)، [مخزن SVN](https://plugins.svn.wordpress.org/prettycode/)
را بررسی کنید، یا از طریق [RSS](https://plugins.trac.wordpress.org/log/prettycode/?limit=100&mode=stop_on_copy&format=rss)
در [گزارش توسعه](https://plugins.trac.wordpress.org/log/prettycode/) مشترک شوید.

## گزارش تغییرات

#### 2.0.2

 * Fixed build

#### 2.0.1

 * Fixed build

#### 2.0

 * Upgraded to CodeMirror 6
 * Updated blockAPI version to 3
 * Fixed bugs

#### 1.0.7

 * Fixed code editor line height

#### 1.0.6

 * Added translation for JS files
 * Fixed a bug with PHP block

#### 1.0

 * Initial release

## اطلاعات

 *  نگارش **2.0.2**
 *  آخرین به‌روزرسانی **3 ماه پیش**
 *  نصب‌های فعال **100+**
 *  نگارش وردپرس ** 5.8 یا بالاتر **
 *  آزمایش‌شده تا **6.9.4**
 *  نگارش PHP ** 7.0 یا بالاتر **
 *  زبان‌ها
 * [English (US)](https://wordpress.org/plugins/prettycode/) و [French (France)](https://fr.wordpress.org/plugins/prettycode/).
 *  [به زبان خودتان ترجمه کنید](https://translate.wordpress.org/projects/wp-plugins/prettycode)
 * برچسب
 * [block](https://fa.wordpress.org/plugins/tags/block/)
 *  [نمایش پیشرفته](https://fa.wordpress.org/plugins/prettycode/advanced/)

## امتیازها

 5 از 5 ستاره.

 *  [  امتیاز 2 5-ستاره     ](https://wordpress.org/support/plugin/prettycode/reviews/?filter=5)
 *  [  امتیاز 0 4-ستاره     ](https://wordpress.org/support/plugin/prettycode/reviews/?filter=4)
 *  [  امتیاز 0 3-ستاره     ](https://wordpress.org/support/plugin/prettycode/reviews/?filter=3)
 *  [  امتیاز 0 2-ستاره     ](https://wordpress.org/support/plugin/prettycode/reviews/?filter=2)
 *  [  امتیاز 0 1-ستاره     ](https://wordpress.org/support/plugin/prettycode/reviews/?filter=1)

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

[مشاهده همه بررسی‌ها](https://wordpress.org/support/plugin/prettycode/reviews/)

## مشارکت کنندگان

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

## پشتیبانی

چیزی برای گفتن دارید؟ نیاز به کمک دارید؟

 [مشاهده انجمن پشتیبانی](https://wordpress.org/support/plugin/prettycode/)