|
|
@@ -166,7 +166,7 @@ Just like Prism.js and Highlight.js, the Prismatic plugin follows HTML coding st |
|
|
|
|
|
|
|
1. Visit the Prismatic General Settings and choose your library |
|
|
|
2. Enable "Code Escaping" via the settings tab of your chosen library |
|
|
|
3. Do one of the following:] |
|
|
|
3. Do one of the following: |
|
|
|
* Wrap multi-line code with pre & code tags: <pre><code>...</code></pre> |
|
|
|
* Wrap single-line code with code tags: <code>...</code> |
|
|
|
|
|
|
@@ -174,7 +174,7 @@ For example, the code snippets included in either of the following markup exampl |
|
|
|
|
|
|
|
This is a single-line example: |
|
|
|
|
|
|
|
<code class="language-php"><?php echo 'Hello world'; ?></code>. |
|
|
|
<code class="language-php"><?php echo 'Hello world'; ?></code> |
|
|
|
|
|
|
|
This is a multi-line code example: |
|
|
|
|
|
|
@@ -199,7 +199,7 @@ So what exactly happens when the "Code Escaping" options are enabled? Here is a |
|
|
|
* __Frontend & Admin Area__ - both of the previous are applied |
|
|
|
* __None__ - all code escaping is disabled |
|
|
|
|
|
|
|
Note that each library -- Prism.js, Highlight.js, and Plain Flavor -- features its own code-escape settings. So the code-escape settings that are applied depends on the currently active library. Visit the plugin's General Settings to choose your library. Then visit that library's tab to configure its code-escape settings. |
|
|
|
Note that each library — Prism.js, Highlight.js, and Plain Flavor — features its own code-escape settings. So the code-escape settings that are applied depends on the currently active library. Visit the plugin's General Settings to choose your library. Then visit that library's tab to configure its code-escape settings. |
|
|
|
|
|
|
|
When code escaping is enabled for either/both the frontend or Admin Area, the plugin makes the following changes to any code contained within <code></code> tags: |
|
|
|
|
|
|
|