Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Ability to colorize imports? #223
Comments
No, not really, because syntax highlighter doesn't know if it's a class or just a weirdly named module. @vpetrovykh Victor, it's weird that GH highlights that though. Maybe they no longer use MP? |
Yeah, it appears they no longer use https://github.com/github/linguist to highlight the source. |
|
That explains the bugs, sigh. |
Gotcha, thanks for the explanation. In my project the module naming is fairly consistent where I can guarantee that:
Is it possible for me to manually colorize these within my theme using the VSCode Thanks! |
Editor name and version: VSCode 1.49.0
Platform: Windows 10
Color scheme: Dark+
MagicPython version: Installed via Python extension v2020.8.108011
A sreenshot:

5-10 lines of surrounding code:
Just as the above code snippet does, is it possible to colorize class imports in VSCode?
I've tried searching the web for an answer on this topic but couldn't find one; I'm submitting an issue here in hopes of someone either telling me that this is intended but not working, or that this is not supported.
Thanks for any info!