[WordPress] 外掛分享: GenerateWP Embed

首頁外掛目錄 › GenerateWP Embed
WordPress 外掛 GenerateWP Embed 的封面圖片
40+
安裝啟用
★★★★★
5/5 分(1 則評價)
2447 天前
最後更新
問題解決
WordPress 3.5+ PHP 5.2.4+ v1.5 上架:2015-02-19

內容簡介

使用此 WordPress 外掛,您可以展示從 GenerateWP.com 取得的程式碼片段於您的 WordPress 網站上,只需使用程式碼片段的 URL 或 ID。

從您的儀表板或網站公開的片段庫中選擇任何公開片段,或創建您自己的片段!複製片段 URL,並將其粘貼到您的文字編輯器中。然後,轉到視覺化編輯器,以確認它正常加載。

或者,您可以使用以下屬性,使用 [generatewp id=""] 短碼將片段嵌入您的內容:

id – 片段ID(必填)。
theme – 嵌入片段的主題。可接受主題:github、geonyx、kimono、paradise、soft、zenophilia、md(材料設計)、luminous_dark(深色佈局)、luminous_light(淺色佈局)。預設為“github”。
lang – Cod 語言。允許的語言: php、html、css、javascript。預設為“php”。
ln – 預設為開啟行號,但可以使用 ln 參數將其關閉,將其設置為零(0)。
sl – 開始行號。預設為1,如果開啟行號。
al – 自動連結列在代碼中的連結。預設為0,沒有自動連結。
mh – 嵌入片段的最大高度,以覆蓋垂直捲軸。預設為500個像素(pixels)。

關於 GenerateWP

GenerateWP 提供用戶友好工具,讓開發人員創建基於 WordPress 的高級應用程序。使用簡單的代碼生成器,開發人員可以使用最新的 WordPress 編碼標準和 API 創建自定義和高質量的代碼。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.5) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「GenerateWP Embed」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Create code snippets and showcase them to your users.
About GenerateWP
GenerateWP provides user-friendly tools for developers to create advanced applications built on top of WordPress. With simple code generators, developers can create custom and high quality code using the latest WordPress coding standards and API’s.
GenerateWP WordPress Plugin
Using this plugin you can showcase your code snippets from GenerateWP.com in your WordPress site, using the snippet URL or snippet ID.
Choose any public snippet from your dashboard or from the sites public snippet library, or create your own! Copy the snippet URL and paste it into your text editor. Then simply click over to the visual editor to confirm that it loads properly.

Alternatively, you can embed snippets to your content using the [generatewp id=""] shortcode with the following attributes:

id – Snippet ID (required).
theme – The embedded snippet theme. Accepted themes: github, geonyx, kimono, paradise, soft, zenophilia, md (material design), luminous_dark (dark theme), luminous_light (light theme). Default is ‘github’.
lang – Cod syntax language. Accepted languages: php, html, css, javascript. Default ‘php’.
ln – Line numbers are turned on by default but you can turn it off using the ln parameter and set it to zero (0).
sl – Starting line number. Default 1, if line numbers turned on.
al – Auto-link links listed in the code. Default 0, no auto links.
mh – Max height for the embedded snippet to overwrite vertical scroll bars. Default 500 (pixels).

延伸相關外掛

文章
Filter
Mastodon