PavelTorgashov / FastColoredTextBox

Fast Colored TextBox for Syntax Highlighting. The text editor component for .NET.
Other
1.21k stars 463 forks source link

Different padding for each line #172

Closed TabishRafiq closed 4 years ago

TabishRafiq commented 5 years ago

Is it possible to set different margins/padding for each line? I want to add some adding after every let say 10 lines. I tried custom TextStyle but having selection highlight issue with that.

PavelTorgashov commented 5 years ago

I think no, it is impossible. You can only insert needed amount of spaces at start of each line.

PavelTorgashov commented 5 years ago

Oh, maybe you mean top and bottom paddings? Class LineInfo contains field bottomPadding. This is additional bottom padding for each line.

TabishRafiq commented 5 years ago

image

No such field?

PavelTorgashov commented 5 years ago

It is internal field. You need or change source code of FCTB. Or hack this field via reflection.