GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Add more granularity to _pyrepl syntax theming for "keywords" · Issue #134953 · python/cpython Closed Labels 3.14bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltriagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.type-featureA feature request or enhancementA feature request or enhancement DescriptionFeature or enhancementProposal:I made a custom This is the theme I used: theme_with_dim_operators = default_theme.copy_with( syntax=Syntax( keyword=ANSIColors.GREEN, builtin=ANSIColors.BLUE, comment=ANSIColors.INTENSE_YELLOW, string=ANSIColors.CYAN, number=ANSIColors.CYAN, definition=ANSIColors.BLUE, soft_keyword=ANSIColors.BOLD_GREEN, ), ) I then used this example code to check the highlighting between the two: from math import pi print(f"Welcome to Python {pi:.2f}") name = None if name is None: print("It's", True) Pasting that code in my text editor (vim), looks like this: Pasting the same code in the REPL, looks like this: The granularity with syntax highlighting needs to stop somewhere, but I feel it would be nice to add a bit more granularity than is currently supported by In particular, it would be nice to distinguish between:
I feel that distinguishing between 1 and 2 is more important than between 1 and 3. While Has this already been discussed elsewhere?This is a minor feature, which does not need previous discussion elsewhere Links to previous discussion of this feature:No response Linked PRsReacted by Tomas R., sobolevn, Stan Ulbrych and Daniel Hollas Activity
MetadataMetadataAssigneesLabels3.14bugs and security fixesbugs and security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytopic-replRelated to the interactive shellRelated to the interactive shelltriagedThe issue has been accepted as valid by a triager.The issue has been accepted as valid by a triager.type-featureA feature request or enhancementA feature request or enhancement ProjectsMilestoneRelationshipsDevelopmentIssue 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. |