Completed
Last Updated: 29 Mar 2021 15:51 by ADMIN
Release R2 2021 (LIB 2021.1.329)
Ken
Created on: 09 Feb 2021 08:07
Category: SyntaxEditor
Type: Bug Report
1
RadSyntaxEditor: Very long strings are not colored properly when they are not entirely visible
2 comments
ADMIN
Dimitar
Posted on: 29 Mar 2021 15:51

We've increased the horizontal virtualization cache and it should automatically handle most of the cases. Yet with very long strings, it may be necessary to disable the virtualization by setting the new RadSyntaxEditor.ShouldTaggersProcessEntireLines property to true. By default the property is set to false.

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

ADMIN
Hristo
Posted on: 09 Feb 2021 08:11

Hi,

The issue is caused by the insufficient horizontal cache.

Workaround: Increase the HorizontalVirtualizationStep

typeof(LineBasedUILayer<ClassificationTag>).GetField("HorizontalVirtualizationStep", BindingFlags.Static | BindingFlags.NonPublic).SetValue(null, 200);

Result:

Setting a very big step may affect the performance and even with such a step the coloring may fail in certain cases when you have extremely long strings.

Regards,
Hristo
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.