Problem with memberlist and hyphen

SyntaxEditor for Windows Forms Forum

Posted 10 years ago by Joachim Schwieren
Version: 4.0.0283
Avatar
Hi,

I have a problem with the memberlist and the hyphen character.

Open the SDI editor example application and open the code behind file for the dynamic HTML syntax language. Now go to the position where the memberlist with the HTML tags is filled and add two more items:

test-one
test-two

When you now start the demo and enter "<" the member list appears; start typing test and you see the two new entries. If you now continue typing "-" the word test-one is filled in and the member list closes.

In other word there is no way to make get the test-two entry by typing somting like "test-t"; if also checked the AllowedCharacters of the memberlist; the hyphen "-" is included there!

How can I solve this?

Thanks,

Joe

Comments (2)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Joe,

The member list creation code there should look like this:
IntelliPromptMemberList memberList = syntaxEditor.IntelliPrompt.MemberList;
memberList.ResetAllowedCharacters();
memberList.AllowedCharacters.Add('!');
memberList.AllowedCharacters.Add('-');
The ! and - chars weren't added to the allowed characters before but should be for HTML, as shown above.


Actipro Software Support

Posted 10 years ago by Joachim Schwieren
Avatar
Thanks, that did it!
The latest build of this product (v2018.1 build 0342) was released 11 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.