Skip to content

issues with RTL alignment #126

@eyaler

Description

@eyaler

thanks for this awesome code. i wanted to use it for my non-code-highlighting use case involving RTL languages, and found the following issues:

  1. displayed text is always left-aligned. using ctrl+right-shift or alt-shift the change the text direction (alignment) and/or the language does not affect displayed text.
  2. due to the above, selection and highlighting of right aligned text is broken. the hidden correctly-aligned text is highlighted instead. this is relevant for both user selection process itself which is confusing, and the highlighting of that selection or of the browser's find in page. strange crossovers can occur for long lines. see image:

Image

  1. also, using dir="rtl" or dir="auto" have no effect (i only tried this with the css-tricks demo)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:coreA bug/feature for the core code-input.js/code-input.css filesbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions