python / python/cpython

IDLE: syntax highlighting and selected text

Open
#93,266 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

topic-IDLE type-feature
Dominant language
Python
Stars
77.2k
Forks
36k
PR merge metrics
PR metrics pending

Description

Bug report

In the newest version of python (Python3.10.4) IDLE will remove syntax highlighting on selected text. How do I remove this? Is there anything in the tkinter source code that I have to change on my ened?

Your environment

  • CPython versions tested on: Python 3.10.4
  • Operating system and architecture: Macos
  • IDLE info: Python 3.10.4 (v3.10.4:9d38120e33, Mar 23 2022, 17:29:05) [Clang 13.0.0 (clang-1300.0.29.30)] on darwin

Images:

Before selection:

Before

After selection:

After

Example of other IDE's (What IDLE used to do):

Example

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report concerns IDLE's syntax highlighting when text is selected, with tkinter mentioned as a possible source. First reproduce the behavior on macOS with Python 3.10.4 and compare the before-and-after selection images. Done means selected text retains the expected syntax highlighting without changing unrelated IDLE behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.