We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Problem config editorcontrol with placeholder-keywords

Thread ID:

Created:

Updated:

Platform:

Replies:

90953 Oct 26,2009 11:40 AM Dec 17,2009 04:26 AM Windows Forms 5
loading
Tags: EditControl
Mr. Sascha Wald
Asked On October 26, 2009 11:40 AM

Hi there,

I have an APP with an editor inside. The editor shall show some keywords in special format.
The keywords have the format "[%" + keyword + "%]", e.g.
[%MYKEYWORD1%]
[%MYKEYWORD2%]
[%MYKEYWORD3%]

if the user inserted a keyword, the whole keyword, including the brackets, shall be shown in a special format, e.g bold. If the user misspells the word (e.g. [%MYKEYWOR3%]), the whole placeholder shall be shown in a special format, e.g. red underlined.

First problem: how to tell the editorcontrol to react on "[%"? I got it with "[", but not with "[%".

Next problem, how to format the whole keyword including brackets and percent-character?

See my xml-config attached

can you give me a hint?

Thanks, regards sascha







mailEditConfig_46950dc6.zip

Nandakumar R [Syncfusion]
Replied On December 10, 2009 10:01 AM

Hi Sascha,

I regret for the long delay in not updating this forum. I am working on these and I will get back to you tomorrow with the samples for them.

Thanks for your patience.

Regards,
Nanda

Nandakumar R [Syncfusion]
Replied On December 11, 2009 05:22 AM

Hi,

Thanks for your patience.

Can you please try this sample and let me know if this helps you?

http://www.syncfusion.com/uploads/redirect.aspx?file=CustomConfigDemo_SampleF90953_a17ea60b.zip&team=support

First problem: how to tell the editorcontrol to react on "[%"? I got it with "[", but not with "[%".
The lexem definition has this information. Please check test_config.xml.

Next problem, how to format the whole keyword including brackets and percent-character?
By applying the format to the detected lexem, you can achieve this. Please check the sample shown here.

Regards,
Nanda

Nandakumar R [Syncfusion]
Replied On December 11, 2009 05:26 AM

[Config.XML]

















BorderStyle="Solid" />






txt











[%
%]



Mr. Sascha Wald
Replied On December 16, 2009 07:50 AM

ok - guess I can use this.

thanks
sascha

Nandakumar R [Syncfusion]
Replied On December 17, 2009 04:26 AM

Hi,

Thanks for the update.

Regards,
Nanda

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;