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

wordpress 插件 文章 2020-04-04 16:41 583 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


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
[wordpress插件] Cheerful password generator欢快的密码生成器
[wordpress插件] bbPress – Private RepliesbbPress –私人回复
[wordpress插件] Woocommerce – Bulk Price UpdaterWoocommerce –批量价格更新
[wordpress插件] Contact Form 7 Multi-Step Addon联系表格7多步骤插件
[wordpress插件] Category Custom Fields类别自定义字段
随便看看
企业微信通讯录账号被管理员误/恶意删除,怎么办? 8090
问题? 7416
如何快速搭建抽奖助手小程序(无需代码知识) 5098
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 6052
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 5661
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 5252
如何解决渲染层网络错误Failed to load media? 16602
小程序找号找回 释放昵称? 2455
我的小程序广告主收入5301,实际进账4406,是怎么回事呀? 2533
删除部分微信用户个人数据的通知,怎么删除? 5584