Selaa lähdekoodia

update

git-svn-id: https://plugins.svn.wordpress.org/prismatic/trunk@1521278 b8457f37-d9ea-0310-8a92-e5e31aec5664
master
Jeff Starr 7 vuotta sitten
vanhempi
commit
fa238a7f91
1 muutettua tiedostoa jossa 4 lisäystä ja 15 poistoa
  1. +4
    -15
      readme.txt

+ 4
- 15
readme.txt Näytä tiedosto

@@ -129,13 +129,8 @@ The Prismatic plugin follows the same conventions used by [Prism.js](http://pris


Once the settings are configured, you can enable syntax highlighting for any code snippet by doing one of the following: Once the settings are configured, you can enable syntax highlighting for any code snippet by doing one of the following:


__Wrap multi-line code with pre & code tags:__

<pre><code>...</code></pre>

__Wrap single-line code with code tags:__ (Prism.js only)

<code>...</code>
* Wrap multi-line code with pre &amp; code tags: `&lt;pre&gt;&lt;code&gt;...&lt;/code&gt;&lt;/pre&gt;`
* Wrap single-line code with code tags: `&lt;code&gt;...&lt;/code&gt;` (Prism.js only)


With the proper markup in place, you can indicate a specific language by adding a class of `language-***` or `lang-***` to the `<code>` tag (where `***` is the language identifier). With the proper markup in place, you can indicate a specific language by adding a class of `language-***` or `lang-***` to the `<code>` tag (where `***` is the language identifier).


@@ -172,14 +167,8 @@ Just like Prism.js and Highlight.js, the Prismatic plugin follows HTML coding st
1. Visit the Prismatic General Settings and choose your library 1. Visit the Prismatic General Settings and choose your library
2. Enable "Code Escaping" via the settings tab of your chosen 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 single-line code with code tags:__

<code>...</code>

__Wrap multi-line code with pre &amp; code tags:__

<pre><code>...</code></pre>
* Wrap single-line code with code tags: `<code>...</code>`
* Wrap multi-line code with pre &amp; code tags: `<pre><code>...</code></pre>`


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:




Loading…
Peruuta
Tallenna