GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Syntax highlighting in PyREPL · Issue #131507 · python/cpython

Syntax highlighting in PyREPL #131507

New issue
Copy link
New issue
Copy link
Closed
Closed
Syntax highlighting in PyREPL#131507
Copy link
Assignees
ambv
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltype-featureA feature request or enhancementA feature request or enhancement

Description

@ambv
ambv
opened on Mar 20, 2025
Issue body actions

We want PyREPL to syntax highlight Python code, like this:
Image

Theming support is planned, but a separate concern. This issue is about enabling syntax to highlight correctly whenever color is used within the REPL anyway.

This is a feature for 3.14, with some test and code refactors that we will be bringing back to 3.13 for improved future maintenance.

Linked PRs

  • gh-131507: Clean up tests and type checking for _pyrepl #131509
  • [3.13] gh-131507: Clean up tests and type checking for _pyrepl (GH-131509) #131546
  • gh-131507: Refactor screen and cursor position calculations #131547
  • [3.13] gh-131507: Refactor screen and cursor position calculations (GH-131547) #131557
  • gh-131507: Add support for syntax highlighting in PyREPL #131562
  • gh-131507: Remove Misc/mypy symlinks from the repository #132270
  • gh-131507: Add a way to recreate the Misc/mypy symlinks if missing #132274
  • [3.13] gh-131507: Add a way to recreate the Misc/mypy symlinks if missing (GH-132274) #132293
  • gh-131507: Add support for syntax highlighting in PyREPL #133247
Reacted by Pavel Kirilin, Abduaziz, Daniel Hollas, Semyon Moroz, Wulian233, Clément Robert, Michael Alexeevich, Hugo van Kemenade and traal

Activity

  1. ambv
    added
    topic-replRelated to the interactive shellRelated to the interactive shell
    type-featureA feature request or enhancementA feature request or enhancement
    on Mar 20, 2025
  2. ambv
    self-assigned this
    on Mar 20, 2025
  3. ambv
    added 8 commits that reference this issue on Mar 20, 2025

    pythongh-131507: Refactor screen and cursor position calculations

    8dc6081

    pythongh-131507: Refactor screen and cursor position calculations

    ede4c08

    pythongh-131507: Refactor screen and cursor position calculations

    4ab5a7b

    gh-131507: Clean up tests and type checking for `_pyrepl` (#131509)

    5d8e981

    [3.13] pythongh-131507: Clean up tests and type checking for `_pyrepl` (

    dc14a75

    pythongh-131507: Refactor screen and cursor position calculations

    f9f4722

    [3.13] gh-131507: Clean up tests and type checking for `_pyrepl` (GH-…

    095c126

    gh-131507: Refactor screen and cursor position calculations (GH-131547)

    4cc82ff
  4. miss-islington
    added a commit that references this issue on Mar 21, 2025

    pythongh-131507: Refactor screen and cursor position calculations (py…

    e2e514a
  5. ambv
    added 2 commits that reference this issue on Mar 21, 2025

    pythongh-131507: Add support for syntax highlighting in PyREPL

    35f01ca

    [3.13] gh-131507: Refactor screen and cursor position calculations (G…

    55fb3a7
  6. picnixz
    added
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on Mar 22, 2025
  7. ambv
    added a commit that references this issue on Apr 8, 2025

    gh-131507: Add a way to recreate the `Misc/mypy` symlinks if missing (#…

    16dcb57
  8. miss-islington
    added a commit that references this issue on Apr 8, 2025

    pythongh-131507: Add a way to recreate the `Misc/mypy` symlinks if mi…

    072fb2e
  9. ambv
    added a commit that references this issue on Apr 8, 2025

    [3.13] gh-131507: Add a way to recreate the `Misc/mypy` symlinks if m…

    099b301
  10. ambv
    added a commit that references this issue on Apr 29, 2025

    pythongh-131507: Add support for syntax highlighting in PyREPL

    e921a80
  11. ambv
    added
    🔨 test-with-buildbotsTest PR w/ buildbots; report in status sectionTest PR w/ buildbots; report in status section
    and removed
    🔨 test-with-buildbotsTest PR w/ buildbots; report in status sectionTest PR w/ buildbots; report in status section
    on May 1, 2025
  12. ambv
    added a commit that references this issue on May 2, 2025

    gh-131507: Add support for syntax highlighting in PyREPL (GH-133247)

    fac41f5
  13. ambv
    closed this as completedon May 19, 2025
  14. StanFromIreland commented on Jun 6, 2025

    @StanFromIreland
    StanFromIreland
    on Jun 6, 2025
    Member
    More actions

    What do we think about adding color to pydoc's repl interface? At a minimum that could be highlighting quit/help etc. in their respective color...?

  15. Pranjal095
    added a commit that references this issue on Jul 12, 2025

    pythongh-131507: Add support for syntax highlighting in PyREPL (pytho…

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

Metadata

Metadata

Assignees

  • @ambv
    ambv

Labels

stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltype-featureA feature request or enhancementA feature request or enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.