[WordPress] 外掛分享: Run This!

首頁外掛目錄 › Run This!
10+
安裝啟用
★★★★★
5/5 分(1 則評價)
4996 天前
最後更新
問題解決
WordPress 3.3.1+ v0.2 上架:2010-03-07

內容簡介

這個外掛讓你的讀者可以直接在你的網誌上運行程式碼片段。

只需在包含程式碼的 PRE 標籤中添加一個類別為 "run-this" 和一個語言屬性。
語言屬性應該有以下值之一:ada、assembler、awk、bash、bc、brainf**k、c、csharp、cpp、c99、clips、clojure、cobol、clisp、d、erlang、forth、fortran、go、haskell、icon、intercal、java、rhino、javascript、lua、nemerle、nice、ocaml、pascal、perl、php、pike、prolog、python、python3、r、ruby、scala、scheme、smalltalk、tcl、unlambda、vbasic、whitespace

程式碼被傳送到Ideone上運行;結果(輸出、時間以及語言實現細節)在程式碼下方的表格中顯示在你的網誌上。

這個外掛是根據GNU通用公共許可證發布的自由軟體。

版本更新紀錄

這個外掛需要已安裝並啟用WP-Syntax外掛程式。

這個外掛使用CORS將程式碼傳送到不同的網域,最近的瀏覽器應該能正常工作(請參閱瀏覽器支援)

這個外掛使用了包含在外掛檔案中的jQuery庫

這個外掛依靠Ideone Web服務API運行 (http://ideone.com/api)

這是Alpha版本,請將錯誤報告發送到[email protected]

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.2) 或搜尋安裝

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

原文外掛簡介

This plugin lets your readers run snippets of code directly from your blog.
Simply add a class “run-this” and a lang attribute to the PRE tag surrounding the code.
The lang attribute should have one of the following values : ada, assembler, awk, bash, bc, brainf**k, c, csharp, cpp, c99, clips, clojure, cobol, clisp, d, erlang, forth, fortran, go, haskell, icon, intercal, java, rhino, javascript, lua, nemerle, nice, ocaml, pascal, perl, php, pike, prolog, python, python3, r, ruby, scala, scheme, smalltalk, tcl, unlambda, vbasic, whitespace
The code is sent over to Ideone to run; results (output, time and language implementation details) are displayed on your blog, in a table underneath the code.
This plugin is free software released under the GNU General Public License.
Release Notes

This plugin depends on the WP-Syntax plugin being installed and activated.

This plugin uses CORS to send the code source accross to a different domain, recent browsers should work fine (See Browser support)

This plugin uses jQuery, which is also included in the plugin archive

This plugin relies on Ideone web services API (http://ideone.com/api)

This is an alpha release, please send bug reports to [email protected]

延伸相關外掛

文章
Filter
Apply Filters
Mastodon