WPCode
93Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditio...
Create with code lets you quickly embed and run your python projects in your website / blog
Create with Code is a WordPress plugin that allows you to embed and run Python code projects directly on your site. It provides a simple way to share your code with a URL from create.withcode.uk, which can be embedded using a shortcode. You can customise the display options, including size and colour scheme, to suit your site's design.
This plugin is particularly useful for educators, students, or anyone looking to demonstrate Python code snippets in a web environment. However, it is important to note that the code runs in the client's browser and is intended mainly as a teaching tool rather than for professional development.
Best for: This plugin suits educators and learners who want to share and demonstrate Python code on their WordPress sites.
What it does well
Where it falls short
Create with Code offers a straightforward way to embed Python code in WordPress, ideal for educational purposes. Its limitations in functionality may not meet the needs of professional developers.
pddring's own description of Create with Code, lightly tidied.
create.withcode.uk lets you write, run, debug and share python code in your browser. This plugin lets you quickly embed your code projects in your wordpress site
When you share a project from create.withcode.uk, you get a URL like: https://create.withcode.uk/embed/3C or https://create.withcode.uk/run/3C
Take the last section of the URL and use it in the shortcode to embed it in your wordpress site:
[withcode id="3C"]
You can customise choose to display the code or run it using the mode attribute:
[withcode id="3C" mode="embed"]
or
[withcode id="3C" mode="run"]
You can also specifiy the height / width of the code snippet:
[withcode id="3C" mode="embed" width="400px" height="600px"]
You can customise the colour scheme by rotating all the colours on the toolbar icons by a hue value:
[withcode id=”3C” hue=”45″]
Or you can make the toolbar icons greyscale as follows:
[withcode id=”3C” grey=”1″]
This plugin just lets you embed python code from create.withcode.uk in a wordpress site.
The python code can be run in an iframe in your site by pressing Ctrl + Enter to run the whole program or Ctrl + Space to run one line at a time.
Python code is interpreted and run in the client’s browser: it doesn’t run on your server and it only supports a sandboxed subset of the fully python language.
This is designed as a teaching and learning aid rather than a fully fledged professional development tool.
Other plugins for developer tooling.
Easily add code snippets in WordPress. Insert header & footer scripts, add PHP code snippets with conditio...
Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for an...
Duplicate post, post order, image resize, email via SMTP, admin menu editor, custom css / code, disable gutenb...
Create custom "Shortcodes" easily for HTML, JavaScript, CSS code snippets and use the shortcodes wit...
Add PHP code to your pages and posts easily using shortcodes.
An easy, clean, and simple way to enhance your site with code snippets.