cupcake
cupcake copied to clipboard
Custom language support
Hi, its me again. ** 3 Issues in one repo! ** Anyway, I want custom language support for editor Like
class MyLexer:
keywords = ["echo", "rmdir", "if"]
e = Editor(root, lexer=MyLexer)
e.pack()
@billyeatcookies Anything you want to say
@arnav56745 sorry for the delay (uni)
since cupcake uses pygments this will be easy to setup! https://pygments.org/docs/lexerdevelopment/#regexlexer https://pygments.org/docs/lexerdevelopment/#using-a-lexer
i will implement a cleaner api for this!
great! keep it on i also want an active pr