Hello everyone!
We are excited to announce a new collaboration which brings runnable Motoko code snippets directly into the Medium social publishing platform.
As a part of an ongoing effort to overhaul Motoko’s documentation, we wanted to make it easy for anyone in the IC community to create interactive tutorials and code examples across the Internet.
Here is a quick demonstration of how it works:
This feature was made possible by the Embed Motoko code snippet service, which you can use to share interactive Motoko programs on almost any blogging site.
Embed Motoko is an open-source project, so feel free to report a bug or open a pull request on GitHub:
Let us know if you end up using these embeds in a Medium story (or anywhere else)! This tool is under active development, and we are eager to tailor this project to any creative use cases you might discover.
Update: it’s now possible to embed these code snippets directly into this forum!
Cheers!
~ Ryan