This is a package with preferences and syntax highlighter for cutting edge Python 3, although Python 2 is well supported, too. The syntax is compatible with Sublime Text, Atom and Visual Studio Code. It is meant to be a drop-in replacement for the default Python package. Attention VSCode users, MagicPython is used as the default Python highlighter in Visual Studio Code. Don't install it unless you want or need the cutting-edge version of it. You will likely see no difference because you're already using MagicPython. MagicPython correctly highlights all Python 3 syntax features, including type annotations, f-strings and regular expressions. It is built from scratch for robustness with an extensive test suite. Type hints in comments require support by the color scheme. The main motivation behind this package was the difficulty of using modern Python with other common syntax highlighters.

Features

  • This is meant to be a drop-in replacement for the default Python package
  • The package can be installed manually in all editors
  • Annotations should not break the highlighting
  • Various built-in types, classes, functions, as well as magic methods are all highlighted
  • MagicPython highlights keywords when they are used as parameter/argument names
  • Highlighting built-ins in class inheritance list makes it slightly more obvious where standard classes are extended

Project Samples

Project Activity

See All Activity >

Categories

Code Review

License

MIT License

Follow Magic Python

Magic Python Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Magic Python!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Code Review Software

Registered

2022-03-29