CodeMirror is a frontend JS and CSS library to display and edit code samples.

The latest versions of the CodeMirror library support right-to-left text. Highlighting and editing text is still ‘glitchy’ in scripts with diacritics.

Bugs in CodeMirror also affect: Atom editor.

Read more about this bug.