Skip to content

Request: Highlight expressions in f-strings as code. #26

Open

Description

@sgtlaggy

Something like this, so the expressions look like code instead of the entire expression being highlighted the same.

f'a{b}c'

Activity

  1. nfnty commented on May 21, 2017

    @nfnty
    Member

    Are you requesting that the bracketed area (b in this case) to just be highlighted normally?

  2. sgtlaggy commented on May 21, 2017

    @sgtlaggy
    Author

    Yes. For example, in this screenshot ctx.guild would be colored the same as the os.path.abspath.
    image

  3. pokey commented on Jan 4, 2018

    @pokey

    I think this is the same as @mikevb1 requested, but basically I'd want the { and } to be SPECIAL as they currently are, but everything between the brackets to be highlighted as if it were just standing on its own line.

  4. adigitoleo commented on Nov 27, 2020

    @adigitoleo

    this gist could be useful (not my work)

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