CodeMirror is a standalone Javascript Library allow us to create online code editor with syntax highlighting feature easily. It supports almost all the famous programming languages, and you can create your own as well. CodeMirror also supports most features that you would find in a normal code editor such as syntax highlighting, autocomplete, code indentation, search/replace etc. It's a really powerful online editor.