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

---

Cari plugin

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

Plugin ini **belum teruji dangan 3 rilis besar WordPress**. Kemungkinan tidak lagi
dipelihara atau didukung, dan mungkin menghadapi masalah kompatibilitas bila digunakan
dengan versi WordPress yang lebih baru.

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

# Snippets Block

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

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

 * [Detail](https://id.wordpress.org/plugins/snippets-block/#description)
 * [Ulasan](https://id.wordpress.org/plugins/snippets-block/#reviews)
 *  [Instalasi](https://id.wordpress.org/plugins/snippets-block/#installation)
 * [Pengembangan](https://id.wordpress.org/plugins/snippets-block/#developers)

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

## Deskripsi

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

## Instalasi

 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

## Tanya Jawab

  What library does this plugin use?

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

  What highlight.js theme uses?

androidstudio

## Ulasan

![](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 Agustus 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.

 [ Baca semua 3 ulasan ](https://wordpress.org/support/plugin/snippets-block/reviews/)

## Kontributor & Pengembang

“Snippets Block” adalah perangkat lunak open source. Berikut ini mereka yang sudah
berkontribusi pada plugin ini.

Kontributor

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

[Terjemahkan “Snippets Block” dalam bahasa Anda.](https://translate.wordpress.org/projects/wp-plugins/snippets-block)

### Tertarik mengembangkan?

[Lihat kode](https://plugins.trac.wordpress.org/browser/snippets-block/), periksa
[repositori SVN ](https://plugins.svn.wordpress.org/snippets-block/), atau mendaftar
ke [log pengembangan](https://plugins.trac.wordpress.org/log/snippets-block/) melalui
[RSS](https://plugins.trac.wordpress.org/log/snippets-block/?limit=100&mode=stop_on_copy&format=rss).

## Log Perubahan

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

 *  Versi **1.3.0**
 *  Diperbarui **7 tahun yang lalu**
 *  Instalasi Aktif **100+**
 *  Versi WordPress ** 5.0 atau yang terbaru **
 *  Diuji hingga **5.2.24**
 *  Bahasa
 * [English (US)](https://wordpress.org/plugins/snippets-block/)
 * Tag
 * [blocks](https://id.wordpress.org/plugins/tags/blocks/)[gutenberg](https://id.wordpress.org/plugins/tags/gutenberg/)
   [highlight.js](https://id.wordpress.org/plugins/tags/highlight-js/)
 *  [Tampilan lanjut](https://id.wordpress.org/plugins/snippets-block/advanced/)

## Rating

 5 dari 5 bintang.

 *  [  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)

[Lihat semua ulasan](https://wordpress.org/support/plugin/snippets-block/reviews/)

## Kontributor

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

## Bantuan

Ada yang ingin dikatakan? Butuh bantuan?

 [Lihat forum bantuan](https://wordpress.org/support/plugin/snippets-block/)