GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Support for highlighting code by different color according to types like in VSCode · Issue #1090 · jupyter-lsp/jupyterlab-lsp

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

New issue
Copy link
New issue
Copy link
Open
Open
Support for highlighting code by different color according to types like in VSCode#1090
Copy link
Labels
enhancementNew feature or requestNew feature or request

Description

@YongcaiHuang
YongcaiHuang
opened on Jun 4, 2024
Issue body actions

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.

Activity

  1. krassowski commented on Jun 4, 2024

    @krassowski
    krassowski
    on Jun 4, 2024
    Member
    More actions

    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:

    • Semantic tokens (fix #137) pappasam/jedi-language-server#231
    • Semantic Token Support python-lsp/python-lsp-server#533
    Reacted by Maz
  2. krassowski
    added
    enhancementNew feature or requestNew feature or request
    on Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402605 — 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.