Skip to content

RTL attempts

ageorgou edited this page Mar 18, 2021 · 2 revisions
  • Each line in the standard VS Code editor is a span inside a div of class view-line. The following selector should apply: .view-line>span (see also this suggestion)
    • Sometimes(?) there are two levels of span? Maybe this only appeared when messing with direction. TODO Check again!
  • Setting the direction with HTML: Add dir="rtl" in the tag: <div style="top:36px;height:18px;" class="view-line" dir="rtl"><span><span class="mtk1">More&nbsp;lines</span></span></div>
    • Needs to be in the div, not the span.
    • dir="auto" does not seem to work (always sets left-to-right)
  • CSS does not seem to work yet...
Clone this wiki locally