# Devs: MakeCode Blocks in Non-Markdown Docs

**URL:** <https://forum.makecode.com/t/devs-makecode-blocks-in-non-markdown-docs/10616>\
**Category:** Educators' Lounge\
**Created:** [October 28, 2021, 9:45pm UTC](https://forum.makecode.com/t/devs-makecode-blocks-in-non-markdown-docs/10616 "2021-10-28T21:45:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)\
**Post date:** [October 28, 2021, 9:45pm UTC](https://forum.makecode.com/t/devs-makecode-blocks-in-non-markdown-docs/10616/1 "2021-10-28T21:45:42Z")

</div>

Hi, friends!

Question for you that’s come up in a project I’m working on:

Is there a “clean” way to generate code snippets in blocks without standing up your own, local server?

I know there’s this, which I love:

[Snippets (makecode.com)](https://makecode.com/writing-docs/snippets)

There’s also this, which is a _huge_ head start for a lot of documents:

[Blocks Gallery (makecode.com)](https://arcade.makecode.com/block-gallery)

But is there something like the snippets renderer but available in a public playground?

---

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [October 28, 2021, 9:50pm UTC](https://forum.makecode.com/t/devs-makecode-blocks-in-non-markdown-docs/10616/2 "2021-10-28T21:50:32Z")

</div>

I believe [https://makecode.com/gh-pages-embed.js](https://makecode.com/gh-pages-embed.js) / the snippet that pops up at the bottom of the readme by default in gh projects

```auto
<script src="https://makecode.com/gh-pages-embed.js"></script><script>makeCodeRender("{{ site.makecode.home_url }}", "{{ site.github.owner_name }}/{{ site.github.repository_name }}");</script>

```

effectively does this; e.g. [https://jwunderl.github.io/pxt-status-bar/README](https://jwunderl.github.io/pxt-status-bar/README) is what’s generated from [https://github.com/jwunderl/pxt-status-bar](https://github.com/jwunderl/pxt-status-bar) (it’ll take a sec to load and then pop in the snippet) – you should be able to pull it out from the makeCodeRender there)
