Transform a textarea into a code editor with syntax highlighting and shortcut key support.
Live Demo: http://textarea-syntax.adriancs.com/
Syntax highlighting is accomplished using highlight.js
.
The shortcut keys are implemented by adding a JavaScript event listener for input
on the textarea, and using a collection of JavaScript code to enable the following shortcut keys:
The following articles provide a walkthrough (step by step explanation) of the code behind the syntax highlighting and shortcut key features:
Documentation:
Cheers and happy coding.