Is there a sort of API with which we can run in a server?

I am trying to figure out a way to create a web editor for using codemirror . I think I have to create a custom mode for for codemirror and also I have to figure out a way to run the code. If there’s some API running the code will be a bit easier in the server.

Also if you can help me creating codemirror or ACE custom mode for please do!!

I’m not familiar with CodeMirror, but it looks like creating the custom mode will be the easy part (it already appears to have a Python mode you could extend upon).

I’m guessing you’d like to create something like this?

For ideas about running the code, check out this post: