# Include code editor and compiler in web application (like on freeCodeCamp)

**URL:** <https://forum.freecodecamp.org/t/include-code-editor-and-compiler-in-web-application-like-on-freecodecamp/153835>\
**Category:** General\
**Created:** [October 18, 2017, 8:02pm UTC](https://forum.freecodecamp.org/t/include-code-editor-and-compiler-in-web-application-like-on-freecodecamp/153835 "2017-10-18T20:02:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grygier94](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/grygier94/32/161195_2.png) [@Grygier94](https://forum.freecodecamp.org/u/Grygier94)\
**Post date:** [October 18, 2017, 8:02pm UTC](https://forum.freecodecamp.org/t/include-code-editor-and-compiler-in-web-application-like-on-freecodecamp/153835/1 "2017-10-18T20:02:56Z")

</div>

Hello,  
I’d like to make web app with programming tasks and I’m curious how could I add code editor with compiler (like here on Free Code Camp where you have editor for every task with syntax highlight and running tests to check if solution is right) to my app. I could just compile code on the server and get the results but there might be security issues with this approach.  
Could you help me find a better way?

---

<div class="post-metadata">

**Author:** ![JacksonBates](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jacksonbates/32/123402_2.png) [@JacksonBates](https://forum.freecodecamp.org/u/JacksonBates)\
**Post date:** [October 18, 2017, 8:13pm UTC](https://forum.freecodecamp.org/t/include-code-editor-and-compiler-in-web-application-like-on-freecodecamp/153835/2 "2017-10-18T20:13:55Z")

</div>

Well, freeCodeCamp is open source, so you are more than welcome to dig through the codebase and see how it all ticks!

IIRC there are open source, web based code editors like the ones FCC and Codepen use.

I think Codepen uses CodeMirror.

---

<div class="post-metadata">

**Author:** ![JacksonBates](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jacksonbates/32/123402_2.png) [@JacksonBates](https://forum.freecodecamp.org/u/JacksonBates)\
**Post date:** [October 18, 2017, 8:15pm UTC](https://forum.freecodecamp.org/t/include-code-editor-and-compiler-in-web-application-like-on-freecodecamp/153835/3 "2017-10-18T20:15:56Z")

</div>

You might want to listen to some of the early Codepen Radio podcasts as well, as they discuss many of their implementation details, including security stuff. Plus it’s fascinating!

---

<div class="post-metadata">

**Author:** ![Grygier94](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/grygier94/32/161195_2.png) [@Grygier94](https://forum.freecodecamp.org/u/Grygier94)\
**Post date:** [October 18, 2017, 8:24pm UTC](https://forum.freecodecamp.org/t/include-code-editor-and-compiler-in-web-application-like-on-freecodecamp/153835/4 "2017-10-18T20:24:22Z")

</div>

Thanks a lot! You’re right, I’ll check it out!

---

<div class="post-metadata">

**Author:** ![JacksonBates](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jacksonbates/32/123402_2.png) [@JacksonBates](https://forum.freecodecamp.org/u/JacksonBates)\
**Post date:** [October 18, 2017, 9:32pm UTC](https://forum.freecodecamp.org/t/include-code-editor-and-compiler-in-web-application-like-on-freecodecamp/153835/5 "2017-10-18T21:32:55Z")

</div>

A quick scan of the freeCodeCamp repo suggests they are using CodeMirror too: [GitHub Search: FCC & CodeMirror](https://github.com/freeCodeCamp/freeCodeCamp/search?utf8=%E2%9C%93&q=codemirror&type=)

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 9:37am UTC](https://forum.freecodecamp.org/t/include-code-editor-and-compiler-in-web-application-like-on-freecodecamp/153835/6 "2021-01-17T09:37:45Z")

</div>

Closed on January 17, 2021, 9:37am UTC


