|
|
@@ -9,9 +9,9 @@ Contributors: specialk |
|
|
|
Author URI: https://plugin-planet.com/ |
|
|
|
Donate link: https://monzillamedia.com/donate.html |
|
|
|
Requires at least: 4.1 |
|
|
|
Tested up to: 4.9 |
|
|
|
Stable tag: 1.7 |
|
|
|
Version: 1.7 |
|
|
|
Tested up to: 5.0 |
|
|
|
Stable tag: 1.8 |
|
|
|
Version: 1.8 |
|
|
|
Requires PHP: 5.2 |
|
|
|
Text Domain: prismatic |
|
|
|
Domain Path: /languages |
|
|
@@ -29,7 +29,7 @@ Display beautiful code snippets with Prism.js, Highlight.js, or plain code escap |
|
|
|
|
|
|
|
* __Prism.js__ - Code escape + syntax highlight using [Prism.js](http://prismjs.com/) |
|
|
|
* __Highlight.js__ - Code escape + syntax highlight using [Highlight.js](https://highlightjs.org/) |
|
|
|
* __Plain Flavor__ - Code escape without syntax highlight (for custom styles) |
|
|
|
* __Plain Flavor__ - Code escape without syntax highlight |
|
|
|
|
|
|
|
**Prism.js Features** |
|
|
|
|
|
|
@@ -63,6 +63,7 @@ Display beautiful code snippets with Prism.js, Highlight.js, or plain code escap |
|
|
|
* Enable code escaping for post content, excerpts, and/or comments |
|
|
|
* Enable code escaping on the frontend, Admin Area, or both |
|
|
|
* Escapes single-line and multi-line code snippets |
|
|
|
* Escapes `<code>` tags based on configuration |
|
|
|
|
|
|
|
**General Features** |
|
|
|
|
|
|
@@ -113,6 +114,12 @@ _[More info on installing WP plugins](http://codex.wordpress.org/Managing_Plugin |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Like the plugin?** |
|
|
|
|
|
|
|
If you like Prismatic, please take a moment to [give a 5-star rating](https://wordpress.org/support/plugin/prismatic/reviews/?rate=5#new-post). It helps to keep development and support going strong. Thank you! |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**Uninstalling** |
|
|
|
|
|
|
|
Prismatic cleans up after itself. All plugin settings will be removed from your database when the plugin is uninstalled via the Plugins screen. |
|
|
@@ -311,7 +318,9 @@ So for example, to specify a code block as C++, you would write: |
|
|
|
|
|
|
|
Multi-line: <pre><code class="language-cpp">...</code></pre> |
|
|
|
|
|
|
|
Alternate: <pre class="language-cpp"><code>...</code></pre> |
|
|
|
Alternate: <pre class="language-cpp"> |
|
|
|
<code>...</code> |
|
|
|
</pre> |
|
|
|
|
|
|
|
To disable Prism.js syntax highlighting for any snippet, simply omit the language class. |
|
|
|
|
|
|
@@ -380,7 +389,9 @@ So for example, to specify a code block as C++, you would write: |
|
|
|
|
|
|
|
Multi-line: <pre><code class="language-cpp">...</code></pre> |
|
|
|
|
|
|
|
Alternate: <pre class="language-cpp"><code>...</code></pre> |
|
|
|
Alternate: <pre class="language-cpp"> |
|
|
|
<code>...</code> |
|
|
|
</pre> |
|
|
|
|
|
|
|
To disable Highlight.js syntax highlighting for any code block, add a class of `nohighlight`, like so: |
|
|
|
|
|
|
@@ -405,6 +416,13 @@ __Note:__ uninstalling the plugin from the WP Plugins screen results in the remo |
|
|
|
Yes, feel free to [suggest a language](https://perishablepress.com/contact/) |
|
|
|
|
|
|
|
|
|
|
|
**Does this work with Gutenberg Block Editor?** |
|
|
|
|
|
|
|
As of now, WP 5.0 beta, Gutenberg does not support `<pre>` and `<code>` tags. Currently with the Gutenberg Block Editor, if you try to add for example `<pre><code class="language-javascript">` to your post content, Gutenberg will transform it into `<pre class="wp-block-preformatted">`. Even switching to "Edit as HTML" and transforming the block into "Preformatted", the result is the same: mangled `<pre>` and `<code>` tags. So until this is fixed in WP, it is impossible to add syntax-highlighted code. Thus, highlighting plugins like Prismatic simply cannot do their jobs. |
|
|
|
|
|
|
|
NOTE: If you need to work with pre/code snippets, you can disable Gutenberg Block Editor using my free plugin, [Disable Gutenberg](https://wordpress.org/plugins/disable-gutenberg/). It restores the Classic Editor so you can work easily with code snippets and other elements in your post content. This is how I roll for all the code I share over at [Perishable Press](https://perishablepress.com/), [Digging Into WordPress](https://digwp.com/), and elsewhere. |
|
|
|
|
|
|
|
|
|
|
|
**Got a question?** |
|
|
|
|
|
|
|
Send any questions or feedback via my [contact form](https://perishablepress.com/contact/) |
|
|
@@ -433,6 +451,13 @@ Links, tweets and likes also appreciated. Thank you! :) |
|
|
|
|
|
|
|
== Changelog == |
|
|
|
|
|
|
|
**1.8 (2018/11/14)** |
|
|
|
|
|
|
|
* Fixes bug: Invalid argument foreach() resources-enqueue.php line 267 |
|
|
|
* Adds homepage link to Plugins screen |
|
|
|
* Updates default translation template |
|
|
|
* Tests on WordPress 5.0 (beta) |
|
|
|
|
|
|
|
**1.7 (2018/08/17)** |
|
|
|
|
|
|
|
* Adds `rel="noopener noreferrer"` to all [blank-target links](https://perishablepress.com/wordpress-blank-target-vulnerability/) |
|
|
|