Skip to content

Custom Grammars - Where to Start #21

Answered by danipen
jamsoft asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think TextmateSharp is the piece you should use for that. I'd use AvaloniaEdit's transformers for that.

Basically you need to write a line transformer that just change the chunk style when you find a match in your line.

You can find a custom transformer here: https://github.com/AvaloniaUI/AvaloniaEdit/blob/master/src/AvaloniaEdit.TextMate/GenericLineTransformer.cs

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@jamsoft
Comment options

Answer selected by danipen
Comment options

You must be logged in to vote
1 reply
@zflemingg1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
3 participants
Converted from issue

This discussion was converted from issue #20 on June 11, 2022 22:25.