Need to highlight error and DateTime keyword in C# language.

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.


7 Replies

CD Chuong Do December 18, 2021 12:58 AM UTC

Attached file to describe above.


Attachment: error_8aa5f973.zip


EM Elakkiya Muthukumarasamy Syncfusion Team December 20, 2021 01:55 PM UTC

Hi Chuong 

Query :DateTime keyword does not highlight 

We are validating this issue and we will update the further details on 21st December 2021. 

Query: When I write some error syntax C# like missing ; or wrong typo, it does not show the red wave error below those text 

In EditControl we have not provide Error validation support for missing or wrong type.We have provide intellisense support for key words based on the added assemblies. Please let us know if you have any concerns. 

Regards, 
Elakkiya 



CD Chuong Do replied to Elakkiya Muthukumarasamy December 20, 2021 06:35 PM UTC

Thank you. Do we have any ways to workaround?



EM Elakkiya Muthukumarasamy Syncfusion Team December 21, 2021 02:27 PM UTC

Hi Chuong , 
 
Query :DateTime keyword does not highlight  
 
We can reproduce this issue at our end, and we need to find the exact cause of this issue in source level. So, we will check and update the further details on 23rd December 2021. 
 
Regards, 
Elakkiya 



AA Arunthivakar Azhagu Syncfusion Team December 23, 2021 05:39 PM UTC

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.



CD Chuong Do December 28, 2021 04:21 PM UTC

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



AA Arunthivakar Azhagu Syncfusion Team December 29, 2021 12:26 PM UTC

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


Loader.
Up arrow icon