Python code colorer

I made a program that takes in some Python code, and outputs a PNG image of your program colored!
Supports:

  • Strings
  • Comments
  • Numbers
  • All these keywords: from import as return while if elif else in and or not class def

Made using Pygame because I really like Pygame

Link: https://replit.com/@JasonRoman/randompythonstuff#formatter.py (this is a repl full of random Python stuff I’ve done; look at the file formatter.py)