Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for highlighting code by different color according to types like in VSCode #1090

Open
YongcaiHuang opened this issue Jun 4, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@YongcaiHuang
Copy link

Elevator Pitch

any plan to support the highlight code by different color according to types (instance, function, class, package etc.) like in VSCode?

Motivation

the highlight code by different color according to types can quick help me to find and identify what I have write, especially when there are many lines and content in one cell.

in VSCode:
image

in Jupyter Notebook:
image

by comparing the same code snippet, higher readability in VSCode, even when I change different way of defining. In Jupyter Notebook, function or class is only highlighted following dot .. Also, the colors for package, class, function, instance are different with higher readability.

@krassowski
Copy link
Member

If someone is willing to contribute a PR I am happy to review it. There is not many LSP servers which implement semantic highlighting - basedpyright is the only free OSS Python server that does it today, but there are PRs for other servers too:

@krassowski krassowski added the enhancement New feature or request label Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants