-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreadme.txt
executable file
·119 lines (84 loc) · 2.44 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
=== Snippets Block ===
Contributors: displaynone
Tags: gutenberg, blocks, snippets, highlight.js
Requires at least: 5.0
Tested up to: 5.2
Stable tag: 1.3.0
License: GPL2+
Allows to add snippets blocks to your content: Javascript, CSS, HTML...
== Description ==
==== 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)
== Installation ==
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
== Screenshots ==
1. /snippets-block/assets/step1.png
2. /snippets-block/assets/step2.png
3. /snippets-block/assets/step3.png
4. /snippets-block/assets/step4.png
== Frequently Asked Questions ==
= What library does this plugin use?
It uses [highlight.js](https://highlightjs.org/)
= What highlight.js theme uses?
`androidstudio`
== 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.
== Upgrade Notice ==
There are no upgrade notices at this time.
== Requirements ==
Gutenberg activated
== Known Issues ==
There are no known issues at this time.
== Roadmap ==
* Allow several themes