ソースを参照

update

git-svn-id: https://plugins.svn.wordpress.org/prismatic/trunk@1521333 b8457f37-d9ea-0310-8a92-e5e31aec5664
master
Jeff Starr 7年前
コミット
287359a266
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      readme.txt

+ 2
- 2
readme.txt ファイルの表示

@@ -134,7 +134,7 @@ Once the settings are configured, you can enable syntax highlighting for any cod


__Note:__ Prism.js highlights both multi-line and single-line code snippets. Highlight.js only supports multi-line code snippets. __Note:__ Prism.js highlights both multi-line and single-line code snippets. Highlight.js only supports multi-line code snippets.


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). For example, to indicate PHP as the language for a single-line code snippet:
With the proper markup in place, you can indicate a specific language by adding a class of `language-abc` or `lang-abc` to the <code> tag (where "abc" is the language identifier). For example, to indicate PHP as the language for a single-line code snippet:


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


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


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. 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.


__Note:__ In addition to detecting the language- and lang- prefixes, Highlight.js also will try to auto-detect the language without it being specified. Plus as an option, you can enable the Highlight.js setting, "Support no-prefix class names" to enable use of language identifiers without any language- or lang- prefix.
__Note:__ In addition to detecting the `language-` and `lang-` prefixes, Highlight.js also will try to auto-detect the language without it being specified. Plus as an option, you can enable the Highlight.js setting, "Support no-prefix class names" to enable use of language identifiers without any `language-` or `lang-` prefix.








読み込み中…
キャンセル
保存