A module that fills your code with color - syntax highlighted text box widget for Tkinter.
This module is the successor to tkcode
, as it is deprecated - please do not use it anymore.
This repository has been moved to Gitlab. The repo is archieved and is read-only now. Please go to Gitlab to get updates and participate on issues.
pip install chlorophyll
Until there's no documentation
import tkinter
import pygments.lexers
from chlorophyll import CodeView
root = tkinter.Tk()
codeview = CodeView(root, lexer=pygments.lexers.RustLexer, color_scheme="monokai")
codeview.pack(fill="both", expand=True)
root.mainloop()