Preserve Formatting (Colors) in Selection

SyntaxEditor for Windows Forms Forum

The latest build of this product (v2018.1 build 0341) was released 7 months ago, which was before this thread was created.
Posted 5 months ago by Stefan Koell
Version: 18.1.0341
Avatar

Hi,

is it possible to preserve the highlight colors within the selection?

Screenshot 1

Even if I just set the Background Color to the accent color - without touching the fore color, it looks like this:

newRenderer.SelectionFocusedBackColor = Color.FromArgb(60, ThemeService.Skin.TranslateColor(SystemColors.Highlight));
newRenderer.SelectionFocusedBorderColor = Color.FromArgb(60, ThemeService.Skin.TranslateColor(SystemColors.Highlight));

newRenderer.SelectionUnfocusedBackColor = Color.FromArgb(60, ThemeService.Skin.TranslateColor(SystemColors.Highlight));
newRenderer.SelectionUnfocusedBorderColor = Color.FromArgb(60, ThemeService.Skin.TranslateColor(SystemColors.Highlight));

Screenshot 2

It would be great if I can replace all my FastColoredTextboxes with the SyntaxEditor.

Regards,
Stefan

Comments (2)

Posted 5 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Stefan,

While the current WinForms SyntaxEditor doesn't support preserving the colors in the selection, that is something I believe we have working for SyntaxEditor vNext (a major effort described in recent blog posts).  vNext should end up being the 2019.1 version when it's ready.  Let us know if you'd like to be a beta tester for it when a beta is available.


Actipro Software Support

Posted 5 months ago by Stefan Koell
Avatar

Glad to hear that this is addressed in the upcoming release. It's not such a biggie so no hurry. I will wait until the 2019.1 is released.

Thanks!

Add Comment

Please log in to a validated account to post comments.