Skip to content

Smart indentation of soft-wrapped lines. #20

Closed

Description

@cben

This might not be feasible until I make indents monospace (#8) because the known approach tweaks line CSS from within renderLine event, where we can't measure pixels, only count chars.

Activity

  1. cben commented on Jan 28, 2014

    @cben
    OwnerAuthor

    Works quite well, but textIndent is sized using wrong font (CodeMirror global default, which is variable-width, rather than the monospace used for leadingspace and formatting-list).

    Speed doesn't seem to be affected.

    However, messed up math, so reverting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions