Kriss_Kross
Kriss_Kross

Reputation: 559

How to change the symbol and color the Tab in AvalonEdit

How to change the symbol and color the Tab character

would like to change the character to the arrow character enter image description here

and set the red color

Upvotes: 0

Views: 522

Answers (2)

Jim Foye
Jim Foye

Reputation: 2036

If you look at the source, you'll see that the character used to display a tab is hard coded:

https://github.com/icsharpcode/AvalonEdit/blob/106b31efe17a4992e1c02ee5c8650bc86591aeb7/ICSharpCode.AvalonEdit/Rendering/SingleCharacterElementGenerator.cs#L106

Upvotes: 1

Kriss_Kross
Kriss_Kross

Reputation: 559

For change color the Tab character

textEditor.TextArea.TextView.NonPrintableCharacterBrush = Brushes.Red;

Upvotes: 1

Related Questions