notepad-plus-plus / notepad-plus-plus/notepad-plus-plus

[Request] Python boolean constant Color Coding

Open
#14,541 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

theme
Dominant language
C++
Stars
29.4k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

When programming in Python, the boolean constants (True and False) do not color code. They stay the same color as variables. I will have a lot of people editing my code and we use a lot of booleans. Compressor_Contactor = True (setting a value) is very different from Compressor_Contactor = true (undeclared variable). It would be great if people get the color coding verification that they correctly typed True or False. Thanks!

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

No file or test is named; start by locating Notepad++'s Python syntax-highlighting definitions and checking how True, False, and ordinary identifiers are classified. Done means True and False receive distinct boolean-constant coloring while variables remain unchanged, with the result verified in the editor.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.