cupcake icon indicating copy to clipboard operation
cupcake copied to clipboard

Custom language support

Open arnav56745 opened this issue 2 years ago • 4 comments

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()

arnav56745 avatar Aug 15 '23 16:08 arnav56745

@billyeatcookies Anything you want to say

arnav56745 avatar Aug 18 '23 16:08 arnav56745

@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

tomlin7 avatar Aug 25 '23 06:08 tomlin7

i will implement a cleaner api for this!

tomlin7 avatar Aug 25 '23 06:08 tomlin7

great! keep it on i also want an active pr

arnav56745 avatar Aug 30 '23 12:08 arnav56745