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 — gh-131507: Add support for syntax highlighting in PyREPL by ambv · Pull Request #131562 · python/cpython Conversation
|
| import unicodedata | ||
| import functools | ||
|
|
||
| from idlelib import colorizer |
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
from idlelib import colorizer
On Windows, if you do not choose to install Tcl/Tk, IDLE will not be available
See https://github.com/python/cpython/blob/main/Tools%2Fmsi%2Ftcltk%2Ftcltk.wixproj
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| import functools | ||
|
|
||
| from idlelib import colorizer | ||
| from typing import cast, Iterator, Literal, Match, NamedTuple, Pattern, Self |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some deprecated aliases. Although there are no issues at present, it would be better to switch to collection.abc
https://docs.python.org/3.14/library/typing.html#typing.Iterator
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| type ColorTag = ( | ||
| Literal["KEYWORD"] | ||
| | Literal["BUILTIN"] | ||
| | Literal["COMMENT"] | ||
| | Literal["STRING"] | ||
| | Literal["DEFINITION"] | ||
| | Literal["SYNC"] | ||
| ) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| type ColorTag = ( | |
| Literal["KEYWORD"] | |
| | Literal["BUILTIN"] | |
| | Literal["COMMENT"] | |
| | Literal["STRING"] | |
| | Literal["DEFINITION"] | |
| | Literal["SYNC"] | |
| ) | |
| type ColorTag = Literal["KEYWORD", "BUILTIN", "COMMENT", "STRING", "DEFINITION", "SYNC"] |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
f4bd10f to
75cd06d
Compare
|
Here's what it looks like with the default Ubuntu dark/light themes:
The contrast of the blue color seems a bit too low for the dark theme (I had the same issue in #132126). Maybe the 'intense' variant might look better? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.