Confused about Syntax Highlighting in TextEditor - Need Guidance #422
Unanswered
kokaKOLA-NEW
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm currently working on a project and I'm trying to figure out how to style the syntax of the code in the TextEditor. I've come across several resources but they all seem to suggest different methods, which is a bit overwhelming and unclear.
Ideally, I'd like to know which resource file format should be used and how to import it into the TextEditor. Alternatively, if there's a way to write code that assigns a specific color to certain keywords, that would be helpful too. I believe this is a common issue and a clear explanation could benefit many people.
I've also seen some instructions in the README about setting up a TextMate theme and syntax highlighting for a project. It mentions installing certain packages like AvaloniaEdit.TextMate and TextMateSharp.Grammars, and implementing the IRegistryOptions interface. However, I'm not sure where to start or how to apply these steps to my project. I've searched through the associated GitHub discussions but haven't found a clear answer.
Could someone please provide a step-by-step guide or point me in the right direction? Any help would be greatly appreciated.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions