[WordPress] 外掛分享: JSFiddle Shortcode

前言介紹

  • 這款 WordPress 外掛「JSFiddle Shortcode」是 2011-07-15 上架。
  • 目前有 80 個安裝啟用數。
  • 上一次更新是 2024-11-05,距離現在已有 180 天。
  • 外掛最低要求 WordPress 3.4.0 以上版本才可以安裝。
  • 有 2 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

wvega |

外掛標籤

jsfiddle |

內容簡介

此外掛允許使用簡短代碼輕鬆嵌入 Fiddles。

使用方法:
[jsfiddle url="http://jsfiddle.net/wvega/UupFu/" height="300px" include="result,html,js,css" font-color="39464E" menu-background-color="FFFFFF" code-background-color="f3f5f6" accent-color="1C90F3"]

所有屬性都是可選的。
url 指定您要嵌入的 Fiddle URL,可包含或不含尾部斜線。
include 可包含任意數量的 result, html, js 和 css,並以逗號分隔;嵌入的 Fiddle 標籤將依據 include 屬性所指定的順序排列。
font-color 為標籤名稱使用的顏色。
menu-background-color 為標籤背景使用的顏色。
code-background-color 為代碼和結果區域的背景顏色。
accent-color 為活動標籤下方指示器的顏色。

結果:

原文外掛簡介

Allows to easily embed Fiddles using a small shortcode.
Usage:
[jsfiddle url="https://jsfiddle.net/wvega/UupFu/" height="300px" include="result,html,js,css" font-color="39464E" menu-background-color="FFFFFF" code-background-color="f3f5f6" accent-color="1C90F3"]

All attributes are optional.
url is the URL of the fiddle you want to embed, with or without trailing slash.
include can be any combination of result, html, js and css, separated by commas; the tabs in the embedded fiddle will follow the order specified with the include attribute.
font-color is the color used for the name of the tabs.
menu-background-color is the color used for the background of the tabs.
code-background-color is the color used for the background of the area where the code and results are shown.
accent-color is the color of the indicator shown below the active tab.

Result:

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「JSFiddle Shortcode」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.1 | 1.0.0 | 1.0.1 | 1.1.0 | 1.1.1 | 1.1.2 | 1.1.3 | trunk |

延伸相關外掛(你可能也想知道)

  • WP Fiddle 》這個外掛程式旨在讓 WordPress 網誌更容易使用 jsFiddle。專為開發人員設計,可在網站中添加 JavaScript 範例。這個外掛程式簡化了此過程。, 支援, 如有任何...。

文章
Filter
Apply Filters
Mastodon