A cutting-edge Python syntax highlighter for Sublime Text, Atom, and Visual Studio Code, supporting modern Python 3 features.
MagicPython is a syntax highlighter package for code editors like Sublime Text, Atom, and Visual Studio Code, designed to support cutting-edge Python 3 features. It solves the problem of default highlighters failing on modern Python syntax such as type annotations, f-strings, and complex string formatting, providing more accurate and readable code highlighting.
Python developers using Sublime Text, Atom, or Visual Studio Code who work with modern Python 3 features and need reliable syntax highlighting for improved code readability.
Developers choose MagicPython for its robust support of modern Python syntax, extensive test suite, and its status as the default Python highlighter in Visual Studio Code, ensuring high-quality highlighting out of the box.
Cutting edge Python syntax highlighter for Sublime Text, Atom and Visual Studio Code. Used by GitHub to highlight your Python code!
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Correctly highlights cutting-edge features like f-strings, type annotations, and async/await, as emphasized in the README's focus on Python 3 syntax.
Handles complex annotations including multi-line strings and nested expressions without breaking, demonstrated in the Annotations section with examples.
Distinguishes regex from raw strings (e.g., 'r' vs 'R') and validates .format() syntax, improving clarity for string-heavy code per the Strings section.
Highlights built-ins and keywords in user definitions to catch accidental masking early, as noted in the Built-ins and Parameters sections.
Type hints in comments only highlight correctly with compatible color schemes, limiting out-of-the-box functionality as admitted in the README.
Requires disabling the default Python package in editors like Sublime Text and Atom, which can be error-prone for inexperienced users.
Only supports Sublime Text, Atom, and VSCode, excluding other popular editors such as PyCharm or Vim without community ports.