Title: JSFiddle Shortcode
Author: Willington Vega
Published: <strong>2011 年 7 月 16 日</strong>
Last modified: 2024 年 11 月 5 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/jsfiddle-shortcode.svg)

# JSFiddle Shortcode

 由 [Willington Vega](https://profiles.wordpress.org/wvega/) 開發

[下載](https://downloads.wordpress.org/plugin/jsfiddle-shortcode.1.1.3.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/jsfiddle-shortcode/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/jsfiddle-shortcode/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/jsfiddle-shortcode/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/jsfiddle-shortcode/#developers)

 [技術支援](https://wordpress.org/support/plugin/jsfiddle-shortcode/)

## 外掛說明

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:

    ```
    <iframe style="width: 100%; height: 300px" src="https://jsfiddle.net/wvega/UupFu/embedded/result,html,js,css/?fontColor=39464E&menuColor=FFFFFF&bodyColor=f3f5f6&accentColor=1C90F3"></iframe>
    ```

## 安裝方式

 1. Extract the plugin files to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Use `[jsfiddle]` in your post content.

## 使用者評論

![](https://secure.gravatar.com/avatar/5682e3f05564d634a46730e5822a7ff080cba1fd2acf42251932d63001a01cd6?
s=60&d=retro&r=g)

### 󠀁[Still usefull in wordpress 4.2.4](https://wordpress.org/support/topic/still-usefull-in-wordpress-424/)󠁿

 [ENSASKE](https://profiles.wordpress.org/ensaske/) 2016 年 9 月 3 日

Installed today 05 September 2015 and works perfectly! I write the short code and
there is my JSFiddle. Thx a lot.

 [ 閱讀全部 2 則使用者評論 ](https://wordpress.org/support/plugin/jsfiddle-shortcode/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈JSFiddle Shortcode〉的開發相關工作。

參與者

 *   [ Willington Vega ](https://profiles.wordpress.org/wvega/)

[將〈JSFiddle Shortcode〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/jsfiddle-shortcode)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/jsfiddle-shortcode/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/jsfiddle-shortcode/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/jsfiddle-shortcode/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/jsfiddle-shortcode/)。

## 變更記錄

#### 1.1.3

 * Add missing License and License URI headers in readme.txt

#### 1.1.2

 * Tested up to WordPress 6.6.2
 * Force HTTPS scheme for provided fiddle URLs to match the site’s scheme
 * Improve sanitization of shortcode attributes and escape the value of the resulting
   HTML attributes

#### 1.1.1

 * Tested up to WodPress 5.2.
 * Use HTTPS URLs in plugin headers, default value for url attribute and Donate 
   link.

#### 1.1.0

 * Add support for font-color, menu-background-color, code-background-color and 
   accent-color attributes.

#### 1.0.1

 * Tested up to WordPress 4.4-beta1.

#### 1.0.0

 * Fix PHP Deprecated notice.

#### 0.1

 * First release.

## 中繼資料

 *  版本 **1.1.3**
 *  最後更新 **2 年前**
 *  啟用安裝數 **60+**
 *  WordPress 版本需求 ** 3.4.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.6.9**
 *  語言
 * [English (US)](https://wordpress.org/plugins/jsfiddle-shortcode/)
 * 標籤:
 * [jsfiddle](https://tw.wordpress.org/plugins/tags/jsfiddle/)
 *  [進階檢視](https://tw.wordpress.org/plugins/jsfiddle-shortcode/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  2 個 5 星使用者評論     ](https://wordpress.org/support/plugin/jsfiddle-shortcode/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/jsfiddle-shortcode/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/jsfiddle-shortcode/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/jsfiddle-shortcode/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/jsfiddle-shortcode/reviews/?filter=1)

[撰寫評分](https://wordpress.org/support/plugin/jsfiddle-shortcode/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/jsfiddle-shortcode/reviews/)

## 參與者

 *   [ Willington Vega ](https://profiles.wordpress.org/wvega/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/jsfiddle-shortcode/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://wvega.com/)