Last modified: 2014-01-03 16:28:25 UTC
Most programming languages are left-to-right, so dir="ltr" should be the default for CodeEditor. However, some programming languages are right-to-left, for example qlb and others (see [[Non-English-based programming languages]] and search the page for Arabic), and they should be supported, too. The direction should probably be a parameter when initializing the editing control.
Some context: https://gerrit.wikimedia.org/r/#/c/80707/
We don't support anything but JS/CSS and Lua right now right ? So this is highly theoretical for now ?
Use of explicitly RTL programming languages would be highly theoretical, I would think. :) But neat, if anybody wants to run a wiki using them we'd love the patch I imagine. Full bidi is however useful for "regular" programming languages that include comments or strings in RTL languages, however.