简体   繁体   English

如何尝试运行在ACE Cloud 9中编写的代码?

[英]How do I try and run code that I have written in ACE Cloud 9?

I am using ACE to allow people to code freely on my website. 我使用ACE允许人们在我的网站上自由编码。 How would I run this code. 我将如何运行此代码。 I would like a run button in the bottom left corner (I can do that in css), but how would I run it, as it is python. 我想在左下角有一个运行按钮(我可以在css中做到),但是我将如何运行它,因为它是python。 I have added extra tags, as you can write these languages in the ace editor. 我添加了额外的标签,因为您可以在ace编辑器中编写这些语言。 When I mean, a run button, I mean like on codecademy, where you write some code, then it is submitted. 我的意思是运行按钮,就像在代码学院上一样,在其中编写一些代码,然后将其提交。

You could possibly make a temporary file in your system, and in an iframe, open the file. 您可以在系统中制作一个临时文件,然后在iframe中打开该文件。


Important Note This could be insecure as they could get the URL and execute code to delete ../../../ or something, which could harm your files. 重要说明这可能是不安全的,因为他们可能获取URL并执行代码以删除../../../或某些可能损害您文件的代码。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何运行我用JavaScript编写的代码? - How do I run code I have written in JavaScript? 如何运行用户输入 Ace 编辑器的代码 - How can I run the code the user enters into the Ace Editor 我有一个问题,此代码有效并连接到 atlas 云。 但是当我尝试在 heroku 上运行它时,它卡住了。 如果它的结构不正确? - I have a problem, this code works and connects into atlas cloud. But when i try to run it on heroku , it gets stuck. if its not properly structured? 如何使用 laravel 表单获取 Ace 代码编辑器的内容 - How do I take the content of the Ace code editor with a laravel form 如何使用 ACE 编辑器突出显示代码? - How can I highlight code with ACE editor? 如何使 textarea 成为 ACE 编辑器? - How do I make a textarea an ACE editor? 如何防止我的代码写入 <pre> 从渲染? - How do I prevent code written in my <pre> from rendering? 如何分析SonarQube中.php文件中编写的JavaScript代码 - How do I analyze JavaScript code written in .php file in SonarQube 我有可拆分屏幕的javascript代码,但是,如何从Flex应用程序运行它呢? - I have javascript code that splits the screen, however, how do I run it from a flex application? 我把它写成 res.send()。 所以gettingTO一个没有CSS的页面只是我写的数据来改变那个页面的CSS属性如何做到这一点 - i have written it as res.send(). so gettingTO a page with noCSS just the data written i wnat to change the CSSproperties of that page how to do that
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM