|
|
@@ -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 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: |
|
|
|
|
|
|
@@ -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> |
|
|
|
|
|
|
|
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/)_ |
|
|
|