瀏覽代碼

update

git-svn-id: https://plugins.svn.wordpress.org/prismatic/trunk@1521322 b8457f37-d9ea-0310-8a92-e5e31aec5664
master
Jeff Starr 7 年之前
父節點
當前提交
2ede75bac4
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      readme.txt

+ 3
- 1
readme.txt 查看文件

@@ -130,7 +130,9 @@ 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 multi-line code with pre & code tags: <pre><code>...</code></pre>
* Wrap single-line code with code tags: <code>...</code> (Prism.js only)
* Wrap single-line code with code tags: <code>...</code>

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-*** 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:




Loading…
取消
儲存