Title: Snippets Block
Author: Luis Sacristán
Published: <strong>4 april 2019</strong>
Last modified: 29 april 2019

---

Plugins zoeken

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

Deze plugin **is niet getest met de laatste 3 grotere versies van WordPress**. Mogelijk
wordt het niet meer onderhouden of ondersteund. Ook kunnen er compatibiliteitsproblemen
ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.

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

# Snippets Block

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

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

 * [Details](https://nl.wordpress.org/plugins/snippets-block/#description)
 * [Beoordelingen](https://nl.wordpress.org/plugins/snippets-block/#reviews)
 *  [Installatie](https://nl.wordpress.org/plugins/snippets-block/#installation)
 * [Ontwikkeling](https://nl.wordpress.org/plugins/snippets-block/#developers)

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

## Beschrijving

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

## Installatie

 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

## FAQ

  What library does this plugin use?

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

  What highlight.js theme uses?

androidstudio

## Beoordelingen

![](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/) 
20 augustus 2020

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/) 18 mei 2019

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/) 11 april 2019

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.

 [ Lees alle 3 beoordelingen ](https://wordpress.org/support/plugin/snippets-block/reviews/)

## Bijdragers & ontwikkelaars

“Snippets Block” is open source software. De volgende personen hebben bijgedragen
aan deze plugin.

Bijdragers

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

[Vertaal “Snippets Block” in je eigen taal.](https://translate.wordpress.org/projects/wp-plugins/snippets-block)

### Interesse in ontwikkeling?

[Bekijk de code](https://plugins.trac.wordpress.org/browser/snippets-block/), haal
de [SVN repository](https://plugins.svn.wordpress.org/snippets-block/) op, of abonneer
je op het [ontwikkellog](https://plugins.trac.wordpress.org/log/snippets-block/)
via [RSS](https://plugins.trac.wordpress.org/log/snippets-block/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 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

 *  Versie **1.3.0**
 *  Laatst geüpdatet **7 jaar geleden**
 *  Actieve installaties **100+**
 *  WordPress versie ** 5.0 of nieuwer **
 *  Getest t/m **5.2.26**
 *  Taal
 * [English (US)](https://wordpress.org/plugins/snippets-block/)
 * Tags
 * [blocks](https://nl.wordpress.org/plugins/tags/blocks/)[gutenberg](https://nl.wordpress.org/plugins/tags/gutenberg/)
   [highlight.js](https://nl.wordpress.org/plugins/tags/highlight-js/)
 *  [Geavanceerde weergave](https://nl.wordpress.org/plugins/snippets-block/advanced/)

## Waarderingen

 5 van 5 sterren.

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

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

[Bekijk alle beoordelingen](https://wordpress.org/support/plugin/snippets-block/reviews/)

## Bijdragers

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

## Ondersteuning

Iets te melden? Hulp nodig?

 [Het supportforum bekijken](https://wordpress.org/support/plugin/snippets-block/)