Title: Snippets Block
Author: Luis Sacristán
Published: <strong>2019(&#101;)k&#111; apirila&#114;&#101;&#110; 4(&#97;)</strong>
Last modified: 2019(&#101;)k&#111; apirila&#114;&#101;&#110; 29(&#97;)

---

Bilatu pluginak

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

Plugin hau **ez da probatu WordPressen azken 3 bertsio garrantzitsuenekin**. Baliteke,
jada, mantentze edo euskarririk ez izatea, eta, WordPressen bertsio berriagoekin
erabiltzen denean, bateragarritasun arazoak izan ditzake.

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

# Snippets Block

 [Luis Sacristán](https://profiles.wordpress.org/displaynone/)-(r)en eskutik

[Deskargatu](https://downloads.wordpress.org/plugin/snippets-block.1.3.0.zip)

 * [Xehetasunak](https://eu.wordpress.org/plugins/snippets-block/#description)
 * [Berrikuspenak](https://eu.wordpress.org/plugins/snippets-block/#reviews)
 *  [Instalazioa](https://eu.wordpress.org/plugins/snippets-block/#installation)
 * [Garapena](https://eu.wordpress.org/plugins/snippets-block/#developers)

 [Laguntza](https://wordpress.org/support/plugin/snippets-block/)

## Deskripzioa

Allows to add snippets blocks to your content: Javascript, CSS, HTML…

### Purpose

Add snippet blocks to your WordPress content using the new Gutenberg editor

### How to use it

 * Add a Snippet block within your content
 * Include your code
 * Select the language
 * Save the post and check your front-end

### Supported languages

 * Apache
 * Bash
 * C#
 * C++
 * CSS
 * Erlang
 * Go
 * HTML
 * XML
 * Handlebars
 * JSON
 * Java
 * JavaScript
 * Markdown
 * Objective C
 * PHP
 * Python
 * R
 * Ruby
 * Rust
 * SCSS
 * SQL
 * Shell
 * Twig
 * TypeScript

### Credits

 * Based in Making WordPress Do More [Block Starter Kit](https://github.com/mkdo/block-starter-kit)
 * Original webpack configuration (before modifications) from [Zac Gordon\’s Gutenberg Course](https://github.com/zgordon/gutenberg-course).
 * Original deploy script (before modifications) from [Garry Jones](https://github.com/GaryJones/wordpress-plugin-git-flow-svn-deploy).
 * Webpack HMR thanks to [Christian Glingener](https://github.com/CGlingener)

### Requirements

Gutenberg activated

### Known Issues

There are no known issues at this time.

### Roadmap

 * Allow several themes

## Instalazioa

 1. Backup your WordPress install
 2. Upload the plugin folder to the `/wp-content/plugins/` directory
 3. Activate the plugin through the \’Plugins\’ menu in WordPress

## MEG

  What library does this plugin use?

It uses [highlight.js](https://highlightjs.org/)

  What highlight.js theme uses?

androidstudio

## Berrikuspenak

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

### 󠀁[Working on WP5.5](https://wordpress.org/support/topic/working-on-wp5-5/)󠁿

 [Anonymous User 17638488](https://profiles.wordpress.org/anonymized-17638488/) 
2020(e)ko abuztuaren 20(a)

HighlightJS supports a heap of different languages and snippets-block can be modified
to include more than it’s current default. Works well simple and straight forward

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

### 󠀁[Nice and simple](https://wordpress.org/support/topic/nice-and-simple-208/)󠁿

 [Josh](https://profiles.wordpress.org/joshintosh/) 2019(e)ko maiatzaren 18(a)

This is great, nice and simple. It even worked with our old posts that were written
in the old editor. As long as the text is in a <code> tag it’s good to go. Thanks
for the quick solution!

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

### 󠀁[Simple and straight-forward](https://wordpress.org/support/topic/simple-and-straight-forward-27/)󠁿

 [WPMadeasy](https://profiles.wordpress.org/wpmadeasy/) 2019(e)ko apirilaren 11(
a)

Nice, simple and straightforward – just add the block and start typing your script.
No fancy tidbits to get you distracted. Very useful when you are dragged between
several choices – just go for it.

 [ Irakurri 3 berrikuspenak ](https://wordpress.org/support/plugin/snippets-block/reviews/)

## Laguntzaileak eta Garatzaileak

“Snippets Block” software librea da. Ondoko pertsonek egin dizkiote ekarpenak plugin
honi.

Laguntzaileak

 *   [ Luis Sacristán ](https://profiles.wordpress.org/displaynone/)

[Itzul zaitez Snippets Block zure hizkuntzara.](https://translate.wordpress.org/projects/wp-plugins/snippets-block)

### Garapena interesatzen zaizu?

[Araka kodea](https://plugins.trac.wordpress.org/browser/snippets-block/), begiratu
[SVN biltegia](https://plugins.svn.wordpress.org/snippets-block/) edo harpidetu 
[garapen erregistrora](https://plugins.trac.wordpress.org/log/snippets-block/) [RSS](https://plugins.trac.wordpress.org/log/snippets-block/?limit=100&mode=stop_on_copy&format=rss)
bidez.

## Aldaketen loga

#### 1.3.0

 * Added Spanish translation.

#### 1.2.1

 * Fixed line numbers with long lines.

#### 1.2.0

 * Added line numbers. Thanks [Waqas Bin Hasan](https://wordpress.org/support/users/waqasb/)
   for the tip.

#### 1.1.0

 * Added copy button: it allows to copy to clipboard the content of the snippet
 * Save formatted code: instead of parsing the content using `highlight.js` in the
   front-end, the HTML is saved directly in the backend
 * Fixed `filemtime` in Windows

#### 1.0.1

 * Cleaning some first SVN version mess

#### 1.0.0

 * First version.

## Meta

 *  Version **1.3.0**
 *  Azken eguneraketa **duela 7 urte**
 *  Instalazio aktiboak **100+**
 *  WordPress bertsioa ** 5.0 edo handiagoa **
 *  **5.2.24** (e)raino probatuta.
 *  Language
 * [English (US)](https://wordpress.org/plugins/snippets-block/)
 * Etiketak
 * [blocks](https://eu.wordpress.org/plugins/tags/blocks/)[gutenberg](https://eu.wordpress.org/plugins/tags/gutenberg/)
   [highlight.js](https://eu.wordpress.org/plugins/tags/highlight-js/)
 *  [Ikuspegi aurreratua](https://eu.wordpress.org/plugins/snippets-block/advanced/)

## Balorazioak

 5 out of 5 stars.

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

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

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

## Laguntzaileak

 *   [ Luis Sacristán ](https://profiles.wordpress.org/displaynone/)

## Laguntza

Zerbait duzu esateko? Laguntza behar?

 [Ikusi laguntza foroa](https://wordpress.org/support/plugin/snippets-block/)