Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Not able to fold strings in CodeMirror 6 #1551

Closed

Description

@AyushPatel101

Describe the issue

See original issue for more details - jupyterlab/jupyterlab#17464

It seems like as part of CodeMirror 5 -> CodeMirror 6, strings in Python are not able to fold. I would appreciate any attention getting this working again.

Browser and platform

No response

Reproduction link

No response

Activity

  1. marijnh commented on Apr 22, 2025

    @marijnh
    Member

    This only worked in 5 because it simply looked at indentation, and I guess you indented your string's continued lines.

    I suppose, with Python's docstring convention, big strings aren't uncommon. Attached patch adds a fold rule for them.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions