Page MenuHomePhabricator

clever support for direction in CodeEditor
Open, LowestPublicFeature

Description

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.


Version: unspecified
Severity: enhancement

Details

Reference
bz53361

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 22 2014, 1:50 AM
bzimport added a project: CodeEditor.
bzimport set Reference to bz53361.
bzimport added a subscriber: Unknown Object (MLST).

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.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:14 AM
Aklapper removed a subscriber: wikibugs-l-list.