Title: Syntax Highlighter with PrismJS
Author: mohamad wael
Published: <strong>9 Novembro, 2022</strong>
Last modified: 9 Novembro, 2022

---

Procurar plugins

Este plugin **não foi testado com as 3 últimas grandes versões do WordPress**. Pode
já não ser suportado e pode ter problemas de compatibilidade quando usado com versões
mais recentes do WordPress.

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

# Syntax Highlighter with PrismJS

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

[Descarregar](https://downloads.wordpress.org/plugin/syntax-highlighter-prismjs.0.0.1.zip)

 * [Detalhes](https://pt.wordpress.org/plugins/syntax-highlighter-prismjs/#description)
 * [Avaliações](https://pt.wordpress.org/plugins/syntax-highlighter-prismjs/#reviews)
 * [Desenvolvimento](https://pt.wordpress.org/plugins/syntax-highlighter-prismjs/#developers)

 [Suporte](https://wordpress.org/support/plugin/syntax-highlighter-prismjs/)

## Descrição

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.

## Avaliações

Este plugin não tem avaliações.

## Contribuidores e programadores

“Syntax Highlighter with PrismJS” é software de código aberto. As seguintes pessoas
contribuíram para este plugin:

Contribuidores

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

[Traduza o “Syntax Highlighter with PrismJS” para o seu idioma.](https://translate.wordpress.org/projects/wp-plugins/syntax-highlighter-prismjs)

### Interessado no desenvolvimento?

[Consulte o código](https://plugins.trac.wordpress.org/browser/syntax-highlighter-prismjs/),
consulte o [repositório SVN](https://plugins.svn.wordpress.org/syntax-highlighter-prismjs/),
ou subscreva o [registo de alterações](https://plugins.trac.wordpress.org/log/syntax-highlighter-prismjs/)
por [RSS](https://plugins.trac.wordpress.org/log/syntax-highlighter-prismjs/?limit=100&mode=stop_on_copy&format=rss).

## Registo de alterações

#### 0.0.1

 * initial release.

## Metadados

 *  Versão **0.0.1**
 *  Última actualização **Há 4 anos**
 *  Instalações activas **Menos de 10**
 *  Testado até **6.1.15**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/syntax-highlighter-prismjs/)
 * Etiquetas
 * [highlighter](https://pt.wordpress.org/plugins/tags/highlighter/)[prism](https://pt.wordpress.org/plugins/tags/prism/)
   [syntax highlighter](https://pt.wordpress.org/plugins/tags/syntax-highlighter/)
 *  [Visualização avançada](https://pt.wordpress.org/plugins/syntax-highlighter-prismjs/advanced/)

## Classificações

Ainda não foram submetidas avaliações.

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

[Ver todas as revisões](https://wordpress.org/support/plugin/syntax-highlighter-prismjs/reviews/)

## Contribuidores

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

## Suporte

Tem algo a dizer? Precisa de ajuda?

 [Ver fórum de suporte](https://wordpress.org/support/plugin/syntax-highlighter-prismjs/)

## Doar

Gostaria de apoiar o desenvolvimento deste plugin?

 [ Fazer donativo para o plugin ](https://www.paypal.com/donate?hosted_button_id=QHHP2H5JN358N)