
內容簡介
使用簡碼直接在你的網頁中處理代碼的方法如下:
http://processingjs.org/articles/jsQuickStart.html#processingcodeinwebpage
並加入 prismjs (http://www.prismjs.com) 以突出顯示代碼。
在文章中添加 Processing 代碼
只需要添加簡碼:
[p5js code canvas][/p5js] 以顯示代碼和結果
[p5js code][/p5js] 以顯示代碼
[p5js canvas][/p5js] 以顯示代碼的結果
範例
[p5js code canvas]
// Processing 代碼
void setup() {
size(200, 200);
background(100);
stroke(255);
ellipse(50, 50, 25, 25);
println(“hello web!”);
}
[/p5js]
外掛標籤
開發者團隊
原文外掛簡介
Processing code directly in your web page with shortcode is using this technique :
http://processingjs.org/articles/jsQuickStart.html#processingcodeinwebpage
and adding prismjs (http://www.prismjs.com) for highlight the code
add processing code in your post
Just add shortcode
[p5js code canvas][/p5js] to show the code and the result
[p5js code][/p5js] to show the code
[p5js canvas][/p5js] to show the result of the code
example
[p5js code canvas]
// Processing code
void setup() {
size(200, 200);
background(100);
stroke(255);
ellipse(50, 50, 25, 25);
println(“hello web!”);
}
[/p5js]
