Page MenuHomePhabricator

clever support for direction in CodeEditor
Open, LowestPublic

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).
Amire80 created this task.Aug 26 2013, 6:40 PM

We don't support anything but JS/CSS and Lua right now right ? So this is highly theoretical for now ?

brion added a comment.Jan 3 2014, 4:28 PM

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.

Restricted Application added a project: I18n. · View Herald TranscriptJun 2 2015, 2:20 PM
Ebraminio moved this task from Backlog to Other on the RTL board.Aug 9 2015, 1:15 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 9 2015, 1:15 PM
Amire80 moved this task from Untriaged to RTL on the I18n board.Feb 27 2018, 8:03 AM