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

Support for cell separators '#%%' #340

Open

Description

@01tot10

Summary

I'm used to dividing up my Python source files into cells, divided by separators #%%. These usually render nicely in common IDEs, like Spyder and VSCode. At the moment, cell separators are not highlighted by language-atom. I'm wondering would it make sense to add them?

Motivation

Cell separators give visual cues for better navigation of your source files, making editing just ever so slightly nicer.

Describe alternatives you've considered

An alternative for providing cell support would be installing a fully-fledged IDE on top of Atom, like Hydrogen. That solution brings lot's of overhead, if you only want to add cell highlighting.

Additional context

A bunch of lines of code, as rendered in Spyder
Screenshot from 2022-06-29 10-57-29
A bunch of lines of code, as rendered in Atom
Screenshot from 2022-06-29 10-57-53

Activity

  1. Alexey-T commented on Jun 29, 2022

    @Alexey-T

    what do you suggest to render for such separator? horizontal line above/below the separator?

  2. 01tot10 commented on Jun 29, 2022

    @01tot10
    Author

    Hey @Alexey-T! Yes, that would be the most logical thing IMO (horizontal line above,) and it would be canonical to what I've seen in IDEs!

  3. ThatXliner commented on Jun 29, 2022

    @ThatXliner
    Contributor

    I’ve never seen that before. Cool idea but I think some init script hacking might just do the trick.

  4. 01tot10 commented on Jun 30, 2022

    @01tot10
    Author

    ... Cool idea but I think some init script hacking might just do the trick.

    A-ha! That's something I haven't considered. Also wouldn't know what init script hacking would mean in this case, but I'll memorize that!

  5. ThatXliner commented on Jun 30, 2022

    @ThatXliner
    Contributor
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