Unplanned
Last Updated: 03 Dec 2020 10:14 by ADMIN
Ken
Created on: 03 Dec 2020 10:13
Category: SyntaxEditor
Type: Feature Request
0
RadSyntaxEditor: add appropriate API (e.g. event) that allows you to specify the CharType when navigating in the document

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;
        }

0 comments