[英]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.