python / python/cpython

IDLE: syntax highlighting and selected text

未关闭
#93,266 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

topic-IDLE type-feature
主要语言
Python
星标
77.2k
派生
36k
PR 合并指标
PR 指标待抓取

描述

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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

该报告涉及选择文本时 IDLE 的语法高亮,并提到 tkinter 可能是来源。首先在 macOS 上使用 Python 3.10.4 重现该行为,并比较选择前后的图像。完成的标准是:选中的文本保留预期的语法高亮,同时不改变 IDLE 的其他无关行为。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
desktop
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。