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

nel_h2
Get the most trusted enterprise browser Icon
Get the most trusted enterprise browser

Advanced built-in security helps IT prevent breaches before they happen

Defend against security incidents with Chrome Enterprise. Create customizable controls, manage extensions and set proactive alerts to keep your data and employees protected without slowing down productivity.
Download Chrome
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