When using LineHighlightTagger a NullReferenceException is thrown. To workaround this exception, you can add a custom TextFormatDefinition object to the TextFormatDefinitions collection of the RadSyntaxEditor.
this.syntaxEditor.TextFormatDefinitions.AddLast(LineHighlightTagger.LineHighlightFormatDefinition, new TextFormatDefinition(new Telerik.Windows.Controls.SyntaxEditor.UI.Pen(new SolidColorBrush(Colors.Gray), new Thickness(1))));
Default keystroke in other editors to activate text replacement is: ctrl+H
Would be nive to enable this in the syntax editor.
We want to have the option to replace texts only in a selected part of the document.
Use Notepad++ as a reference to check this feature.
Shift + Alt + Down Selection then typing multiple characters results in all of them being typed in all selected lines.
Shift + Alt _ Down Selection then typing multiple characters results in only the first one being typed in all lines, then selection is lost and next chars are inserted in the last selected line only.
//using System;
//usign System.Windows.Controls;
Two consecutive lines with commented using sections result in ArgumentOutOfRangeException in SyntaxEditor with CSharpFoldingTagger.
/* and */ words are start /end words for multiline comments in C#/SQL/VB
They should be outside strings when they form a comment block.
Character data sections are not recognized and colored by the XmlTagger in SyntaxEditor.
Visual Studio:
SyntaxEditor:
Also parsing such elements is wrong:
Expanded OK:
Collapsed BUG (Node is closed but it shouldnt):
issue 2 - single line CDATA does not need folding button
Adding breakpoints (markers) to particular lines in code should be possible.
Should be doable via UI or in code. Collection of all breakpoints should be accessible in code too.
After putting a folding region out of the viewport by scrolling and then bringing it back, the folding region is not drawn correctly when typing new lines into it.
When the variation is changed in the VisualStudio2013 theme, the Foreground is not updated.
As a workaround, you can reset the Template of the control:
var template = this.syntaxEditor.Template;
this.syntaxEditor.Template = null;
this.syntaxEditor.Template = template;
In some scenarios, an ArgumentException is thrown when a folding region with selected text is collapsed. An example can be seen below:
For example:
some text // some comment
some text 2 // some comment 2
Specified argument was out of the range of valid values.
Parameter name: span
StackTrace:
at Telerik.Windows.SyntaxEditor.Core.Text.DataStructures.ConcatenationRopeNode.GetText(Span span) in C:\WPF_Scrum\Current\Controls\SyntaxEditor\SyntaxEditor.Core\Text\DataStructures\ConcatenationRopeNode.cs:line 140