# Running Processing code on-site?

**URL:** <https://discourse.processing.org/t/running-processing-code-on-site/2378>\
**Category:** Site Feedback\
**Created:** [August 5, 2018, 4:11am UTC](https://discourse.processing.org/t/running-processing-code-on-site/2378 "2018-08-05T04:11:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tony](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tony/32/949_2.png) [@tony](https://discourse.processing.org/u/tony)\
**Post date:** [August 5, 2018, 4:11am UTC](https://discourse.processing.org/t/running-processing-code-on-site/2378/1 "2018-08-05T04:11:58Z")

</div>

I’m a big fan of stackoverflow, and I think it’s really awesome that they’ve implemented [runnable JS snippets on site](https://stackoverflow.blog/2014/09/16/introducing-runnable-javascript-css-and-html-code-snippets/).

Now, I understand that we’re comparing the capabilities of a major site against our humble forum, but I figure it’s worth asking if implementing something similar is even possible.

I’m not saying we don’t have other options like Openprocessing, but I just want to know if runnable-snippets are even feasible.

---

<div class="post-metadata">

**Author:** ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)\
**Post date:** [August 5, 2018, 7:00am UTC](https://discourse.processing.org/t/running-processing-code-on-site/2378/2 "2018-08-05T07:00:06Z")

</div>

One thing to consider is that not all Processing is compatible with embedding in the web, but it is possible to embed Processing.js or P5.js sketches.

You can already embed them using CodePen:

https://codepen.io/KevinWorkman/embed/preview/zaQZxo?height=300&slug-hash=zaQZxo&default-tabs=js,result&host=https://codepen.io&embed-version=2

You can also use [repl.it](https://repl.it/).

---

<div class="post-metadata">

**Author:** ![tony](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tony/32/949_2.png) [@tony](https://discourse.processing.org/u/tony)\
**Post date:** [August 5, 2018, 7:59pm UTC](https://discourse.processing.org/t/running-processing-code-on-site/2378/3 "2018-08-05T19:59:20Z")

</div>

Wow, didn’t know we could embed Codepens! Thanks for sharing this info.
