8 ответов
+ 7
You did not really specify one particular programming language. Also it is not clear if you want to build your own website, or use the Sololearn playground for this.
Inside Sololearn, the Web playground offers the most ability to run external code. Check these two examples about Nim, a language that is not supported by Sololearn natively:
https://code.sololearn.com/WU0L7RIv2TLs/?ref=app
https://code.sololearn.com/WDZ4XtSpsP5G/?ref=app
Basically you have a couple of options:
- compilation is done remotely by a different server and the execution result is communicated back to the caller via REST API. Services like jdoodle do this.
- compilation is done remotely, and the whole code editor and execution environment is embedded in HTML eg. with an iframe tag.
- some languages can be transpiled to javascript, eg. Brython runs Python code in the browser.
- an even more modern approach is to compile to WASM (webassembly) which can be executed by the browser natively.
+ 4
Saurya
Try to search on Google, you will find alots of books and blog posts which would be helpful for you
https://link.medium.com/aDgIMbLNVyb
+ 3
On YouTube there are lot of tutorials available that teaches you step by step. go and search them
+ 3
Hasnain [ACTIVE CHALLENGER]
Yasin Rahnaward
already searched and nothing found i need knowledgeable who already created it .. 😁😁not only with half information or fake blogs .
+ 2
What did you search for? If you search for "how to make an online compiler". Even the first result is enough to help develop a live code editor that supports; C++, Java, and Python.
+ 2
Syed Rafiqul Islam start learning 🤠
+ 1
🤔🤔🤔
0
Hey bro how to code in java