Browse Source

update

git-svn-id: https://plugins.svn.wordpress.org/prismatic/trunk@1521288 b8457f37-d9ea-0310-8a92-e5e31aec5664
master
Jeff Starr 7 years ago
parent
commit
0ea9e3032d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      readme.txt

+ 2
- 2
readme.txt View File

@@ -132,11 +132,11 @@ Once the settings are configured, you can enable syntax highlighting for any cod
* Wrap multi-line code with pre & code tags: <pre><code>...</code></pre>
* Wrap single-line code with code tags: <code>...</code> (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 &lt;code&gt; tag (where *** is the language identifier).

For example, to indicate PHP as the language for a single-line code snippet (Prism.js only):

<code class="language-php"><?php echo 'Hello world'; ?></code>
&lt;code class="language-php"&gt;&lt;?php echo 'Hello world'; ?&gt;&lt;/code&gt;

Likewise, to indicate HTML as the language for a multi-line code snippet:



Loading…
Cancel
Save