Skip to content
Discussion options

You must be logged in to vote

TextMateSharp itself doesn’t expose a “CSS-like” place where you override token colors the way VS Code themes do.

In AvaloniaEdit, the TextMate integration already maps TextMate scopes to colors using the theme you pass (AtomOneDark in your case). The Markdown grammar, and themes are the same one used by VS Code, so in theory you should get the same scope breakdown.

If the built-in themes are not enough and you want full control, the way to customize highlighting in AvaloniaEdit is to plug your own LineTransformer. The TextMate one is placed here:

https://github.com/AvaloniaUI/AvaloniaEdit/blob/8dea781b49b09dedcf98ee7496d4e4a10b410ef0/src/AvaloniaEdit.TextMate/TextMateColoringTransformer.…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by maxiptah
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants