update
git-svn-id: https://plugins.svn.wordpress.org/prismatic/trunk@1521309 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
7759e30a84
commit
99734d5805
30
readme.txt
30
readme.txt
@ -138,19 +138,19 @@ With the proper markup in place, you can indicate a specific language by adding
|
||||
|
||||
Likewise, to indicate HTML as the language for a multi-line code snippet (note: if you are reading this plugin's raw readme.txt file, [click here](https://wordpress.org/plugins/prismatic/installation/) to read the formatted text):
|
||||
|
||||
<pre><code class="language-html"><br>
|
||||
<table><br>
|
||||
<tr><br>
|
||||
<th>Name</th><br>
|
||||
<th>Side</th><br>
|
||||
<th>Role</th><br>
|
||||
<tr><br>
|
||||
<td>Darth</td><br>
|
||||
<td>Dark</td><br>
|
||||
<td>Sith</td><br>
|
||||
</tr><br>
|
||||
</table><br>
|
||||
</code></pre>
|
||||
<pre><code class="language-html">
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Side</th>
|
||||
<th>Role</th>
|
||||
<tr>
|
||||
<td>Darth</td>
|
||||
<td>Dark</td>
|
||||
<td>Sith</td>
|
||||
</tr>
|
||||
</table>
|
||||
</code></pre>
|
||||
|
||||
So the prefix of the class names are the same for Prism.js and Highlight.js. The difference is the language identifier used to specify each language. Check out the following "About Prism.js" and "About Highlight.js" sections for more information.
|
||||
|
||||
@ -192,12 +192,12 @@ So what exactly happens when the "Code Escaping" options are enabled? Here is a
|
||||
|
||||
* __Frontend only__ - code snippets are escaped at runtime (no changes made to content in the database)
|
||||
* __Admin Area only__ - code snippets are escaped when viewed via the Admin Area (changes will be saved to database if the "Update" or "Publish" button is clicked)
|
||||
* __Frontend & Admin Area - both of the previous are applied
|
||||
* __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.
|
||||
|
||||
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:
|
||||
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:
|
||||
|
||||
\r removed
|
||||
& replaced with &
|
||||
|
Loading…
Reference in New Issue
Block a user