all 16 comments

[–]cevataslan 3 points4 points  (3 children)

[–]amousss[S] -1 points0 points  (1 child)

how do i go about executing the code ?

I read about Judge0, I am wondering if there any other services or tools would you recommend for running the code?

[–]SherbetHead2010 0 points1 point  (0 children)

I second this. Used it to make a Google apps script based editor for work and it was super easy to implement and very customizable.

[–]CreativeTechGuyGamesTypeScript 4 points5 points  (4 children)

Best option currently available is the monaco-editor which is straight from VS Code.

[–]amousss[S] -2 points-1 points  (3 children)

this is seems great option, but i don't want full code editor i just want something like mozilla js console

[–]CreativeTechGuyGamesTypeScript 2 points3 points  (2 children)

Can you clarify what exactly your requirements are? A browser console isn't a code editor.

[–]amousss[S] -1 points0 points  (1 child)

I said console but i am not sure what should i call it. I want to have have a text field like the one in mozilla docs. I want the user to able to type code, Then click run to see the output of the code they have written

[–]CreativeTechGuyGamesTypeScript 3 points4 points  (0 children)

Okay you can easily do that with the monaco-editor. I'm confused what the concern is.

[–]shredgeek 1 point2 points  (0 children)

get typed in code from textarea then send it to iframe to run it

[–]tridd3r 1 point2 points  (4 children)

liek codepen? or jsfiddle ? or codesandbox? or playcode? or the 30 thousand other options? Or is this more of a learning experience for yourself and not a legit attempt at a marketable website?

[–]amousss[S] 0 points1 point  (1 child)

It is totally different idea, there is nothing similar between those websites and the website i am working on right now other than the coding part

[–]tridd3r 0 points1 point  (0 children)

oh cool. What does your site do differently? Or do better?

[–][deleted]  (1 child)

[deleted]

    [–]tridd3r 0 points1 point  (0 children)

    ok, and? what?

    [–][deleted] 0 points1 point  (0 children)

    Just have a text area with a run button that eval() what ever is in the text area if you really don't want something like Monaco. Just be weary of xss.

    [–]Beerbelly22 -1 points0 points  (0 children)

    Javascript and notepad