multiple languages and delimiters patters

SyntaxEditor for Windows Forms Forum

Posted 13 years ago by ori
Avatar
Hello,

I wanted to know if the syntax editor control supports the following features:
1. choose the syntax language on runtime
2. add an element to the language syntax at runtime
3. add a child language (with a delimiter between the two languages) at runtime.

I want to let the user choose two languages and a delimiter pattern, and start edit text

are thses features supported? should I use the 3.1 version or the 4.00

thanks,
Ori

Comments (3)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Ori,

Yes all of those features are supported by SyntaxEditor. If you use a dynamic language (the v3.1 style language) then the entire language may be constructed at run-time. You just need to wrap the language changes with a SyntaxLanguage.IsUpdating = true and SyntaxLanguage.IsUpdating = false.

Check out our DynamicallyCreateForm in the sample project. It can be called from the Language menu of the main SDI Application sample. It shows how to merge two languages together by injecting delimiters at run-time.

These features are supported in both v3.1 and the v4.0 beta.


Actipro Software Support

Posted 13 years ago by ori
Avatar
Hello,

I have more questions:

If I put several syntax editor controls on the form?
does it effect performance? memory usage?

does the control have a mode for editing and a ligher mode for read only?

Thanks,
Ori
Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
It will not effect performance however like any other control, more instances will use more memory. However we recommend that you use the same language instance for each instance of SyntaxEditor if they are using the same language. That helps save on memory.

Yes SyntaxEditor has a read-only mode via the Document.ReadOnly property.


Actipro Software Support

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.