Unplanned
Last Updated: 03 Dec 2020 10:14 by ADMIN

This is the current implementation that is used in RadSyntaxEditor when navigating to the next/previous word, start/end of the current word, etc. It would be good to have an event that allows you to specify the ChartType according to your needs and thus affecting the words navigation in the document.

        internal static CharType GetCharType(char c)
        {
            if (CharsToBeTreatedAsDefault.Contains(c))
            {
                return CharType.Default;
            }

            if (LineBreak.IsLineBreak(c))
            {
                return CharType.NewLine;
            }

            if (char.IsWhiteSpace(c))
            {
                return CharType.WhiteSpace;
            }

            if (char.IsPunctuation(c) || char.IsSymbol(c))
            {
                return CharType.PunctuationOrSymbol;
            }

            return CharType.Default;
        }

Unplanned
Last Updated: 02 Dec 2020 09:52 by ADMIN

RadSyntaxEditorElement offers the following method: public CaretPosition GetPositionFromPoint(System.Drawing.Point point)

However, it doesn't return the correct CaretPosition as it requires to transform the System.Drawing.Point first:

        private void MySyntaxEditor1_MouseDown(object sender, MouseEventArgs e)
        {  
            CaretPosition pos = mySyntaxEditor1.SyntaxEditorElement.GetPositionFromPoint(GetPosition(e, mySyntaxEditor1.SyntaxEditorElement.EditorPresenter)); 
            CaretPosition start = new CaretPosition(pos);
            start.MoveToCurrentWordStart();
            CaretPosition end = new CaretPosition(pos);
            end.MoveToCurrentWordEnd();
            mySyntaxEditor1.SyntaxEditorElement.Selection.Select(start, end);
        }

 public Telerik.WinControls.SyntaxEditor.UI.Point GetPosition(System.Windows.Forms.MouseEventArgs args, Telerik.WinControls.SyntaxEditor.UI.UIElement element)
        {

            System.Drawing.Point screenLocation = mySyntaxEditor1.SyntaxEditorElement.PointToScreen(args.Location);
            System.Drawing.Point point = element.PointFromScreen(screenLocation);
            Telerik.WinControls.Layouts.RadMatrix matrix = element.TotalTransform;
            matrix.Invert();

            return new System.Drawing.PointF(point.X * matrix.ScaleX, point.Y * matrix.ScaleY);
        }

Unplanned
Last Updated: 01 Dec 2020 07:49 by ADMIN
If setting "Allow Scaling" to False, it would be nice it the ZoomComboBox is automatically hidden and the vertical scroll bar fills the space. When Allow Scaling is false, the user can still change the the zoom factor, but nothing happens which is confusing. Although setting SyntaxEditorElement.ZoomComboBox.Visibility to Collapsed does remove the ZoomComboBox, it does not cause the vertical scroll bar to fill the space resulting in slight strange looking UI.
Unplanned
Last Updated: 25 Nov 2020 12:01 by ADMIN
Created by: Ken
Comments: 0
Category: SyntaxEditor
Type: Feature Request
0
We would like to take advantage of hyperlinks to show the user the "friendly name" of an identifier while in the actual script, we store the identifier index. This enables the user to change the friendly name of any identifier without having to go through all scripts that references the identifier, since they are stored as an index. We allow the user to click on the hyperlink which brings up an "Identifier Picker" that lets the user select identifiers defined in the system.
Completed
Last Updated: 06 May 2020 10:40 by ADMIN
Release R2 2020
Created by: Marco
Comments: 3
Category: SyntaxEditor
Type: Feature Request
1
How can I create a tagger that recognizes strings (text contained in double quotes: "text") and apply a color to it?
Completed
Last Updated: 12 Feb 2020 12:02 by ADMIN
Release R1 2020 SP1

RadSyntaxEditor allows the end-users to select a part of the text and drag the selection to a new position.

Currently, there is no public API that allows you to control whether the drag operation should start, on what target line you are dragging over (and whether you can drop on it) and when you drop the selection.

Unplanned
Last Updated: 29 Jan 2020 13:41 by ADMIN
Created by: Joerg
Comments: 0
Category: SyntaxEditor
Type: Feature Request
1
Add ability to disable horizontal scrollbar and enable word wrapping - fixed width of editor and if the word cannot fit - it is moved to next line.
Unplanned
Last Updated: 29 Jan 2020 11:52 by ADMIN
Created by: Marco
Comments: 2
Category: SyntaxEditor
Type: Feature Request
0
How can I hide line numbers?