Title: Code Block
Author: Jerome
Published: <strong>16 d'octubre de 2020</strong>
Last modified: 16 d'octubre de 2020

---

Cerca extensions

Aquesta extensió **no s’ha provat en les darreres 3 versions majors del WordPress**.
Segurament no està mantinguda o suportada, i pot tenir problemes de compatibilitat
quan s’usa en versions recents del WordPress.

![](https://ps.w.org/code-block/assets/icon.svg?rev=2400671)

# Code Block

 Per [Jerome](https://profiles.wordpress.org/jeromepaulos/)

[Baixa](https://downloads.wordpress.org/plugin/code-block.zip)

 * [Detalls](https://ca.wordpress.org/plugins/code-block/#description)
 * [Ressenyes](https://ca.wordpress.org/plugins/code-block/#reviews)
 * [Desenvolupament](https://ca.wordpress.org/plugins/code-block/#developers)

 [Suport](https://wordpress.org/support/plugin/code-block/)

## Descripció

This plugin uses [Prism.js](https://prismjs.com) and a port of the beautiful Atom
One Dark code theme with the Fira Code font.

#### Features

 * Syntax highlighting
 * Tab support
 * Special glyphs for arrow functions, operators, etc
 * Nice interface
 * 17+ languages supported

#### Supported Languages

 * HTML
 * CSS
 * JavaScript
 * Python
 * PHP
 * Ruby
 * SCSS
 * C
 * C++
 * C#
 * Objective-C
 * TypeScript
 * Swift
 * Go
 * JSON
 * SQL
 * Bash

Want to contribute? Check out the [GitHub repository](https://github.com/jxxe/code-block).

## Captures

[⌊The editor block⌉⌊The editor block⌉[

The editor block

[⌊The result⌉⌊The result⌉[

The result

## Blocs

Aquesta extensió proporciona 1 bloc.

 *   Code Block

## PMF

### What if [insert favorite langauge] isn’t supported?

I’ve tried my best to include the some of the most common programming languages,
but there’s a change that yours isn’t supported! There are two things you could 
try. First, many programming langauge syntaxes are very similar. Play around with
different languages and see if any produce a good enough result. Give a member of
the C family a try. Alternatively, you can fork the repository on GitHub and add
it yourself. As long as there’s enough demand and Prism.js supports it, you should
be good to go!

## Ressenyes

No hi ha ressenyes per a aquesta extensió.

## Col·laboradors i desenvolupadors

«Code Block» és programari de codi obert. La següent gent ha col·laborat en aquesta
extensió.

Col·laboradors

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

[Traduïu «Code Block» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/code-block)

### Interessats en el desenvolupament?

[Navegueu pel codi](https://plugins.trac.wordpress.org/browser/code-block/), baixeu-
vos el [repositori SVN](https://plugins.svn.wordpress.org/code-block/), o subscriviu-
vos al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/code-block/)
per [fisl de subscripció RSS](https://plugins.trac.wordpress.org/log/code-block/?limit=100&mode=stop_on_copy&format=rss).

## Registre de canvis

1.0 – Initial Release

## Meta

 *  Versió **1.0**
 *  Darrera actualització **fa 6 anys**
 *  Instal·lacions actives **10+**
 *  Versió del WordPress ** 5.0 o posterior **
 *  Provada fins a **5.5.18**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/code-block/)
 * Etiquetes
 * [code](https://ca.wordpress.org/plugins/tags/code/)[format](https://ca.wordpress.org/plugins/tags/format/)
   [formatter](https://ca.wordpress.org/plugins/tags/formatter/)[Highlight](https://ca.wordpress.org/plugins/tags/highlight/)
   [syntax](https://ca.wordpress.org/plugins/tags/syntax/)
 *  [Vista avançada](https://ca.wordpress.org/plugins/code-block/advanced/)

## Valoracions

Encara no s'ha enviat cap ressenya.

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

[Visualitzeu totes les ressenyes](https://wordpress.org/support/plugin/code-block/reviews/)

## Col·laboradors

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

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

 [Visualitza els fòrums de suport](https://wordpress.org/support/plugin/code-block/)