內容簡介
這個外掛讓你的讀者可以直接在你的網誌上運行程式碼片段。
只需在包含程式碼的 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]
外掛標籤
開發者團隊
原文外掛簡介
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]
