adriancs2 / Textarea-Syntax-Highlight

Syntax Highlightning for Textarea (HTML). Transform Textarea into code editor with shortcut keys supported.
The Unlicense
13 stars 2 forks source link

Syntax Highlightning for Textarea (HTML)

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.