[wordpress插件] Create with Code用代码创建

wordpress 插件 文章 2020-04-04 16:41 590 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

create.withcode.uk lets you write, run, debug and share python code in your browser.

create.withcode.uk使您可以在浏览器中编写,运行,调试和共享python代码。

This plugin lets you quickly embed your code projects in your wordpress site

该插件可让您快速将代码项目嵌入到wordpress网站中

When you share a project from create.withcode.uk, you get a URL like: https://create.withcode.uk/embed/3C or https://create.withcode.ukun/3C

当您从create.withcode.uk共享项目时,您将获得一个URL,例如:https://create.withcode.uk/embed/3C或https://create.withcode.ukun/3C

p>

>

Take the last section of the URL and use it in the shortcode to embed it in your wordpress site:

获取网址的最后一部分,并在简码中使用它,将其嵌入到您的wordpress网站中:

[withcode id="3C"]

  [withcode id =“ 3C”]

You can customise choose to display the code or run it using the mode attribute:

您可以自定义选择显示代码或使用mode属性运行它:

[withcode id="3C" mode="embed"]

  [withcode id =“ 3C” mode =“ embed”]

or

[withcode id="3C" mode="run"]

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

  [withcode id =“ 3C” mode =“ embed” width =“ 400px” height =“ 600px”]

Please note:

请注意:

This plugin just lets you embed python code from create.withcode.uk in a wordpress site.

此插件仅允许您将来自create.withcode.uk的python代码嵌入到wordpress网站中。

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.

可以通过按 Ctrl + Enter 运行整个程序,或按 Ctrl + Space 一次运行一行,在您网站的iframe中运行python代码。

/>

/>

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.

Python代码被解释并在客户端的浏览器中运行:它不在您的服务器上运行,仅支持完全python语言的沙盒子集。

This is designed as a teaching and learning aid rather than a fully fledged professional development tool.

这被设计为教学和学习的辅助工具,而不是成熟的专业开发工具。

安装步骤

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

将create-withcode插件上传到您的博客,激活它并向任何页面/帖子添加简码

下载地址
https://downloads.wordpress.org/plugin/create-with-code.1.2.zip
-EOF-

AI助手支持GPT4.0