git-svn-id: https://plugins.svn.wordpress.org/prismatic/trunk@1521329 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
Jeff Starr 2016-10-24 18:42:50 +00:00
parent 445d89b521
commit b1ff8a8f79

View File

@ -170,7 +170,7 @@ Just like Prism.js and Highlight.js, the Prismatic plugin follows HTML coding st
* Wrap multi-line code with pre & code tags: <pre><code>...</code></pre> * Wrap multi-line code with pre & code tags: <pre><code>...</code></pre>
* Wrap single-line code with code tags: <code>...</code> * Wrap single-line code with code tags: <code>...</code>
For example, the code snippets included in either of the following markup examples would be escaped: For example, the code snippets included in either of the following markup examples would be escaped (note that the class attribute is not required for code escaping).
This is a single-line example: This is a single-line example:
@ -276,7 +276,7 @@ So for example, to specify a code block as C++, you would write:
Multi-line: <pre><code class="language-cpp">...</code></pre> Multi-line: <pre><code class="language-cpp">...</code></pre>
To disable Prism.js syntax highlighting for any code block, simply omit the language class. To disable Prism.js syntax highlighting for any snippet, simply omit the language class.
_I'm glad to add more languages, [make a suggestion](https://perishablepress.com/contact/)_ _I'm glad to add more languages, [make a suggestion](https://perishablepress.com/contact/)_