Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AvalonEdit highlight matching characters

Tags:

c#

wpf

avalonedit

Is there an easy way using Avalon edit to highlight matching brackets and other characters like {}""?

like image 907
Lee Avatar asked Dec 09 '11 17:12

Lee


1 Answers

AvalonEdit can't do that on its own - you will have to write the feature yourself.

You will have to find the matching bracket yourself (which is no trivial task, if your language supports comments, string constants etc.). Then you will have to apply the transformation to the text (see this article, section Line Transformers), and of course remove it manually when it is no longer necessary.

Update:

The lead SharpDeveloper discusses it here: http://community.sharpdevelop.net/forums/p/12352/33648.aspx http://community.sharpdevelop.net/forums/p/10312/28488.aspx

like image 97
Matěj Zábský Avatar answered Oct 30 '22 07:10

Matěj Zábský