DEV Community

Sh Raj
Sh Raj

Posted on • Updated on • Originally published at

Embed Codes on Using Liquid Syntax with Code Runner

Instead of images from carbon or using code highlighting there is one more interactive way to show the code with preview and code runner. So that people can also edit and see the results for satisfaction and clarity.

printf('Some Python Here! πŸ”₯')
Enter fullscreen mode Exit fullscreen mode

See Markdown behind this Post :- | See on Codes20

{% embed https://... %}

Embed JavaScript


// hidden setup JavaScript code goes in this preamble area const hiddenVar = 42 // visible, reader-editable JavaScript code goes here let i = 23; console.log(hiddenVar,i)

Embed Python


Embed HTML



Alternatives - JSFiddle, JSitor...




Many of the services are allrounder like stackblitz, CodeSandbox and replit . So you can edit many programming languages

You can embed Python code or use it as a Python runner in the following platforms:

  • CodePen
  • CodeSandbox
  • GitHub Gist, Issue or Repository
  • Glitch
  • JSFiddle
  • JSitor
  • Kotlin (as a language, can be used for Python)
  • Medium (in articles or stories)
  • Next Tech
  • Reddit (in code blocks or posts)
  • Replit
  • StackBlitz
  • Stackery
  • Stack Exchange or Stack Overflow (for sharing code snippets)
  • Twitch (for live coding)
  • Twitter (in code blocks or tweets)
  • Wikipedia (in code examples or articles, although not a typical use case)

These platforms either support embedding Python code directly or can be used for running Python code in various contexts.

For more you can refer to Editor Guide

Follow me on GitHub :-

πŸ’‘ Tip: You can also use codepen, jsitor or jsfiddle with inside iframe code to add non - supporting website as iframe. i.e. embedding code block <iframe src="" width="100%" height="356" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>

Top comments (1)

michaeltharrington profile image
Michael Tharrington

Wonderful post here!! Thank you so much for helping folks to better understand our available embeds.

Just a suggestion, you might consider adding #howtodevto as a tag to this post. You certainly don't need to and I realize you already have the maximum number of tags on your post, but I think this tag would be a great fit!


Guidance, tips, and tricks for using

We're trying our best to gather all tutorials and tips for using DEV under this tag!