Creating a Web Compiler

Asked 2 years ago, Updated 2 years ago, 16 views

I'd like to make it like a code executor on this site (I'm going to make it using JavaScript, HTml, and JQuery).)

I'm going to do about 3 kinds of Java c language html

Especially, how should I make C language or Java?

And is there an API related to coding?

For example, if you use a certain code to code, you can change the color of the code

html javascript

2022-09-22 20:12

2 Answers

As far as I know, there is no place that supports the code executor function through API method yet. You should make it yourself. Simply this is how it works.

Sandboxing is required unless you use it personally. You don't know what weird code you're going to run to break the system. The hashcode uses a docker for this purpose. I'm This article is good for studying dockers.

The function of changing the color of the code is called Syntax highlighting, see Code mirror .


2022-09-22 20:12

I need to communicate with the server. It is not a coding api, but an api for compilation.

The code completion function is essential for the convenience of coding.

To increase user freedom (system handling, file deletion, etc.), it would be nice to provide virtualization (virtual server).

Syntax coloring in client (html) still has many good solutions...

See http://nnoco.tistory.com/258.


2022-09-22 20:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.