GNU General Public License v3.0

项目介绍

MarketingPipeline/Code-Runner-Web-Component 是一个托管在 GitHub 上的开源项目,主要使用 JavaScript 编写,采用 GNU General Public License v3.0 许可证,目前获得 57 个 Star、12 次 Fork。

仓库全名
MarketingPipeline/Code-Runner-Web-Component
开源许可证
GNU General Public License v3.0
Star 数
57
Fork 数
12
未关闭 Issue
2

README 摘要

Code-Runner-Web-Component A web component that allows you to run high level programming languages on your website via the public Piston API Show your support! Example and usage You can view a demo of the Code Runner web component in use here. How to use Code Runner : Set a language attribute to a supported programming language you prefer to use - example below include this script in your HTML document. How to use…

完整内容见 GitHub 原始 README 或本页 。

常见问题

Code-Runner-Web-Component 用什么语言开发?

主要使用 JavaScript 编写,采用 GNU General Public License v3.0 许可证,目前有 57 个 Star。

Code-Runner-Web-Component 可以免费商用吗?

仓库标注的许可证为 GNU General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 Code-Runner-Web-Component 的源码?

可以直接克隆仓库:git clone https://github.com/MarketingPipeline/Code-Runner-Web-Component.git,默认分支为 main;安装与运行步骤见仓库 README。

Code-Runner-Web-Component 最近还在维护吗?

仓库最近一次更新为 2024年10月30日,当前有 2 个未关闭 Issue;Star 数为 57,可作为社区活跃度的参考。

关于

A web component that allows you to run high level programming languages on your websites (static websites included!)

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

语言占比

CSS
JavaScript

Release

贡献者

README

Code-Runner-Web-Component

ezgif-5-d9d9221610

A web component that allows you to run high level programming languages on your website via the public Piston API
Show your support!

Example and usage

You can view a demo of the Code Runner web component in use here.

How to use Code Runner:

Set a language attribute to a supported programming language you prefer to use - example below

<code-runner language="python"></code-runner>

include this script in your HTML document.

<script src="https://cdn.jsdelivr.net/gh/MarketingPipeline/Code-Runner-Web-Component@main/dist/code-runner-wc.min.js" defer></script> 

How to use Code Runner with Pre-Defined Code:

You can pre-define a code example to run, simply by inserting the code inside of a code-runner element like so -

<code-runner language="python">print('hello world')</code-runner>

Options

Attribute Meaning Default Required
language The programming language to execute code with Undefined Yes

Supported Languages

awk, bash, befunge93, brachylog, brainfuck, bqn, c, c++, cjam, clojure, cobol, coffeescript, cow, crystal, csharp, csharp.net, d, dart, dash, dragon, elixir, emacs, emojicode, erlang, file, forte, forth, fortran, freebasic, fsharp.net, fsi, go, golfscript, groovy, haskell, husk, iverilog, japt, java, javascript, jelly, julia, kotlin, lisp, llvm_ir, lolcode, lua, matl, nasm, nasm64, nim, ocaml, octave, osabie, paradoc, pascal, perl, php, ponylang, powershell, prolog, pure, pyth, python, python2, racket, raku, retina, rockstar, rscript, ruby, rust, scala, smalltalk, sqlite3, swift, typescript, basic, basic.net, vlang, vyxal, yeethon, zig,


Contributing GitHub

Want to improve this? Create a pull request with detailed changes / improvements! If approved you will be added to the list of contributors of this awesome project!

See also the list of contributors who participate in this project.

License GitHub

This project is licensed under the GPL-3.0 License - see the LICENSE.md file for details.

评论

暂无评论