I am using Syncfusion V8.3.0.21 with EditControl. I know it supports C# language but it seems DateTime keyword does not highlight. Also, When I write some error syntax C# like missing ; or wrong typo, it does not show the red wave error below those text. Please help me. Thank you.
Thank you. Do we have any ways to workaround?
Hi Chuong,
Query: DateTime keyword does not highlight
Here the DateTime is a class and in EditControl we have provided the highlight support for keywords and not for the class type.
And as per your requirement, we have achieved the highlighting support for the DateTime class in the sample level and also you can customize your own support by using Lexem in LexemCollection and EditFormats in FormatsCollection. Please refer to the below sample and guidelines.
UG link: https://help.syncfusion.com/wpf/syntax-editor/language-support/custom-language-support
Sample link: https://www.syncfusion.com/downloads/support/directtrac/general/7z/CustomLanguageDemo398965242
Please let us know if you have any other concerns.
Regards,
Arunthivakar A.
It seems that you did with Custom Language. Do we have anyway to use existing CSharp language that Synfusion is supporting? and just adding more DateTime to highlight.
I saw your example that you use the Custom language, it means that some pretty existing features of CSharp language will be disappeared.
Hi Chuong,
As per your requirement, we have modified the sample project with all existing features of the CSharp language that Syncfusion supports and if you need to highlight any class like DateTime so then you can customize it on your own. Please refer to the below sample.
Sample link: https://www.syncfusion.com/downloads/support/forum/171315/7z/CustomLanguageDemo536399862
Please let us know if you have any other concerns.
Regards,
Arunthivakar A