Title: Syntax Highlighter with PrismJS
Author: mohamad wael
Published: <strong>09.11.2022</strong>
Last modified: 09.11.2022

---

Поиск плагинов

Этот плагин **не тестировался с последними 3 основными выпусками WordPress**. Скорее
всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

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

# Syntax Highlighter with PrismJS

 Автор: [mohamad wael](https://profiles.wordpress.org/mwaelk/)

[Скачать](https://downloads.wordpress.org/plugin/syntax-highlighter-prismjs.0.0.1.zip)

 * [Детали](https://ru.wordpress.org/plugins/syntax-highlighter-prismjs/#description)
 * [Отзывы](https://ru.wordpress.org/plugins/syntax-highlighter-prismjs/#reviews)
 * [Разработка](https://ru.wordpress.org/plugins/syntax-highlighter-prismjs/#developers)

 [Поддержка](https://wordpress.org/support/plugin/syntax-highlighter-prismjs/)

## Описание

A syntax highlighter using PrismJs.

### How To Use

Wrap your pre tag as shown below:

    ```
    [sh_prismjs_pre class="language-py line-numbers match-braces rainbow-braces" data_line="1,4-5,7" escape_html='escape']
    <pre>    
    class Implements_Ne:
        ''' A class which implements 
            the __ne__ method '''
        def __ne__( self, other):
            return False

    class Not_Implements_Ne:
        ''' A class which does not
            implement the __ne__
            method '''
        pass
    </pre>
    [/sh_prismjs_pre]
    ```

 * Replace name in language-NAME, by the name of the language that you wish to highlight.
   For example if the language is python, language-NAME should become language-py.
 * If you wish line numbers to appear, use line-numbers .
 * If you wish braces to be matched when selected use match-braces .
 * If you wish to have rainbow braces use rainbow-braces .
 * If you wish to highlight lines, you can use data_line, so in the example provided,
   colorize line 1, and colorize lines from 4 to 5, and colorize line 7.
 * If you wish the content of the pre to be escaped, so for example if it contains
   html tags that you do not wish to be rendered, you can use escape_html=’escape’

For code tags, they also should be wrapped as follows:

    ```
    [sh_prismjs_code class="language-html" escape_html='escape']<code>tag: <br/></code>[/sh_prismjs_code]
    ```

You must use the language-Name option, and you can use the escape_html option.

## Отзывы

Нет отзывов об этом плагине.

## Участники и разработчики

«Syntax Highlighter with PrismJS» — проект с открытым исходным кодом. В развитие
плагина внесли свой вклад следующие участники:

Участники

 *   [ mohamad wael ](https://profiles.wordpress.org/mwaelk/)

[Перевести «Syntax Highlighter with PrismJS» на ваш язык.](https://translate.wordpress.org/projects/wp-plugins/syntax-highlighter-prismjs)

### Заинтересованы в разработке?

[Посмотрите код](https://plugins.trac.wordpress.org/browser/syntax-highlighter-prismjs/),
проверьте [SVN репозиторий](https://plugins.svn.wordpress.org/syntax-highlighter-prismjs/),
или подпишитесь на [журнал разработки](https://plugins.trac.wordpress.org/log/syntax-highlighter-prismjs/)
по [RSS](https://plugins.trac.wordpress.org/log/syntax-highlighter-prismjs/?limit=100&mode=stop_on_copy&format=rss).

## Журнал изменений

#### 0.0.1

 * initial release.

## Мета

 *  Версия **0.0.1**
 *  Обновление: **4 года назад**
 *  Активных установок: **Менее 10**
 *  Совместим вплоть до: **6.1.15**
 *  Язык
 * [English (US)](https://wordpress.org/plugins/syntax-highlighter-prismjs/)
 * Метки:
 * [highlighter](https://ru.wordpress.org/plugins/tags/highlighter/)[prism](https://ru.wordpress.org/plugins/tags/prism/)
   [syntax highlighter](https://ru.wordpress.org/plugins/tags/syntax-highlighter/)
 *  [Дополнительно](https://ru.wordpress.org/plugins/syntax-highlighter-prismjs/advanced/)

## Оценки

Пока что нет ни одного отзыва.

[Ваш отзыв](https://wordpress.org/support/plugin/syntax-highlighter-prismjs/reviews/#new-post)

[Посмотреть всеотзывы](https://wordpress.org/support/plugin/syntax-highlighter-prismjs/reviews/)

## Участники

 *   [ mohamad wael ](https://profiles.wordpress.org/mwaelk/)

## Поддержка

Есть что сказать? Нужна помощь?

 [Перейти в форум поддержки](https://wordpress.org/support/plugin/syntax-highlighter-prismjs/)

## Пожертвование

Хотите поддержать улучшение этого плагина?

 [ Пожертвовать на развитие плагина ](https://www.paypal.com/donate?hosted_button_id=QHHP2H5JN358N)