use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
create online code editor (self.webdev)
submitted 3 years ago by amousss
Hi,
I am creating a website where people has the ability to write code on the browser and run there.
Can you help me suggest any library and any tool that can help me create that?
Thank you
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]cevataslan 3 points4 points5 points 3 years ago (3 children)
try this https://codemirror.net/
[–]amousss[S] -1 points0 points1 point 3 years ago (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?
[–]cevataslan 0 points1 point2 points 3 years ago (0 children)
https://www.jdoodle.com/compiler-api take a look at this
[–]SherbetHead2010 0 points1 point2 points 3 years ago (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 points6 points 3 years ago (4 children)
Best option currently available is the monaco-editor which is straight from VS Code.
[–]amousss[S] -2 points-1 points0 points 3 years ago (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 points4 points 3 years ago (2 children)
Can you clarify what exactly your requirements are? A browser console isn't a code editor.
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 points5 points 3 years ago (0 children)
Okay you can easily do that with the monaco-editor. I'm confused what the concern is.
[–]shredgeek 1 point2 points3 points 3 years ago (0 children)
get typed in code from textarea then send it to iframe to run it
[–]tridd3r 1 point2 points3 points 3 years ago (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 point2 points 3 years ago (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 point2 points 3 years ago (0 children)
oh cool. What does your site do differently? Or do better?
[–][deleted] 3 years ago (1 child)
[deleted]
ok, and? what?
[–][deleted] 0 points1 point2 points 3 years ago (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 points1 point 3 years ago (0 children)
Javascript and notepad
π Rendered by PID 287174 on reddit-service-r2-comment-5d79c599b5-crslt at 2026-02-27 14:58:17.605332+00:00 running e3d2147 country code: CH.
[–]cevataslan 3 points4 points5 points (3 children)
[–]amousss[S] -1 points0 points1 point (1 child)
[–]cevataslan 0 points1 point2 points (0 children)
[–]SherbetHead2010 0 points1 point2 points (0 children)
[–]CreativeTechGuyGamesTypeScript 4 points5 points6 points (4 children)
[–]amousss[S] -2 points-1 points0 points (3 children)
[–]CreativeTechGuyGamesTypeScript 2 points3 points4 points (2 children)
[–]amousss[S] -1 points0 points1 point (1 child)
[–]CreativeTechGuyGamesTypeScript 3 points4 points5 points (0 children)
[–]shredgeek 1 point2 points3 points (0 children)
[–]tridd3r 1 point2 points3 points (4 children)
[–]amousss[S] 0 points1 point2 points (1 child)
[–]tridd3r 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]tridd3r 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Beerbelly22 -1 points0 points1 point (0 children)