Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tool to create a jsFiddle/jsbin.com style code editor? [closed]

Users of my website have to enter HTML, JavaScript and CSS code snippets. Right now they are simply entering the code snippets in to a simple unstyled <textarea>s. I would like to have them enter the code snippets in to boxes that highlight and color code elements similar to jsbin.com and/or jsfiddle.net.

My website is an ASP.net site, so any solution must be compatible with that.

A CSS/JS only solution would be ideal.

I do not need any preview, display or execution ability, simple code color coding in a text editor (textarea?) is all that is required. Commenting highlighting and line numbers would be very nice to have too.

Sorry if this is a duplicate, I found several similar questions, but I still have not found an answer.

Thanks!

like image 656
MCM Avatar asked Nov 02 '22 19:11

MCM


1 Answers

Check out the list of editors on Wikipedia’s comparison of JavaScript-based source code editors.

I think the most popular editors in that list are Ace and CodeMirror.

like image 81
Rory O'Kane Avatar answered Nov 10 '22 05:11

Rory O'Kane