Skip to content

Mirror of WordPress.org plugin: create-with-code

License

GPL-2.0, GPL-2.0 licenses found

Licenses found

GPL-2.0
LICENSE
GPL-2.0
license.txt

common-repository/create-with-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

=== Create with Code ===
Contributors: pddring
Donate link: paypal.me/pddring
Tags: code, python, createwithcode, computing, cs, teaching
Requires at least: 3.2
Tested up to: 5.7
Stable tag: 1.4
License: GPLv2

Create with code lets you quickly embed and run your python projects in your website / blog

== Description ==

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"]`

### Please note:
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.

== Installation ==

Upload the create-withcode plugin to your blog, Activate it and add a shortcode to any page / post

== Changelog ==
= 1.4 = 
* Release Date - 26th March 2020*
Added support for greyscale icons or a different colour scheme (hue rotation)

= 1.3 =
*Release Date - 16th march 2020*

= 1.2 =
*Release Date - 9th Sep 2019*

= 1.1 = 
*Release Date - 29th May 2018*

= 1.0 =
*Release Date - 14 April 2016*

* Initial release

About

Mirror of WordPress.org plugin: create-with-code

Resources

License

GPL-2.0, GPL-2.0 licenses found

Licenses found

GPL-2.0
LICENSE
GPL-2.0
license.txt

Stars

Watchers

Forks

Packages

No packages published

Languages