Title: Snippets Block
Author: Luis Sacristán
Published: <strong>4. април 2019.</strong>
Last modified: 29. април 2019.

---

Претражи додатке

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

Овај додатак **није испробан са последња 3 главна издања Вордпреса**.Можда се више
не одржава или подржава и можда има грешке са усклађеношћу са новијим издањима Вордреса.

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

# Snippets Block

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

[Преузимање](https://downloads.wordpress.org/plugin/snippets-block.1.3.0.zip)

 * [Детаљи](https://sr.wordpress.org/plugins/snippets-block/#description)
 * [Прегледи](https://sr.wordpress.org/plugins/snippets-block/#reviews)
 *  [Постављање](https://sr.wordpress.org/plugins/snippets-block/#installation)
 * [Изградња](https://sr.wordpress.org/plugins/snippets-block/#developers)

 [Подршка](https://wordpress.org/support/plugin/snippets-block/)

## Опис

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

## Постављање

 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

## ЧПП

  What library does this plugin use?

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

  What highlight.js theme uses?

androidstudio

## Прегледи

![](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. август 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. мај 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. април 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.

 [ Види сва 3 прегледа ](https://wordpress.org/support/plugin/snippets-block/reviews/)

## Сарадници и градитељи

„Snippets Block“ је софтвер отвореног кода. Следећи људи су допринели овом додатку.

Сарадници

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

[Преведите „Snippets Block“ на свој језик.](https://translate.wordpress.org/projects/wp-plugins/snippets-block)

### Заинтересовани сте за градњу?

[Прегледајте код](https://plugins.trac.wordpress.org/browser/snippets-block/), проверите
[SVN складиште](https://plugins.svn.wordpress.org/snippets-block/) или се пријавите
на [белешку градње](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).

## Белешка о изменама

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

## Мета

 *  Version **1.3.0**
 *  Last updated **7 година раније**
 *  Active installations **100+**
 *  WordPress version ** 5.0 или новије **
 *  Tested up to **5.2.24**
 *  Language
 * [English (US)](https://wordpress.org/plugins/snippets-block/)
 * Tags
 * [blocks](https://sr.wordpress.org/plugins/tags/blocks/)[gutenberg](https://sr.wordpress.org/plugins/tags/gutenberg/)
   [highlight.js](https://sr.wordpress.org/plugins/tags/highlight-js/)
 *  [Напредни преглед](https://sr.wordpress.org/plugins/snippets-block/advanced/)

## Оцене

 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/)

## Сарадници

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

## Подршка

Имате нешто да кажете? Потребна вам је помоћ?

 [Види форум подршке](https://wordpress.org/support/plugin/snippets-block/)