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!
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With