How to write Lexem to detect Error?

How to write Lexem to detect line end with semicolons, syntax errors and other things, otherwise underline with wave line like Visual Studio?

3 Replies 1 reply marked as answer

EM Elakkiya Muthukumarasamy Syncfusion Team May 6, 2021 12:33 PM UTC

Hi Hoang, 

Greetings from Syncfusion. 

You can able to write a Lexem to detect line end with semicolons, syntax errors and other things using Syntax highlighting support of EditControl. Please refer the below knowledge base link for the same 


Please try it with the above solution and let us know if you need any further assistance on this 

Regards, 
Elakkiya 



HD Hoang Duy Long May 10, 2021 02:05 PM UTC

Thanks for the reply.  I have read but don't know how to write them on XML file, can you write an example in XML file for me?



VR Vijayalakshmi Roopkumar Syncfusion Team May 11, 2021 01:15 PM UTC

Hi Hoang 
 
Thank you for your update. 
 
Please find the sample for your reference, in which we have configure the lexeme for xml file and please download it from following location: 
 
 
Similarly you can go through the following KB and UG to know more about how can we configure the lexeme format, operators, syntax errors briefly in the following links 
 
 
To know about how to highlight error using lexeme, refer the following KB: 
 
 
Please try with this suggestion and let us know if it is helpful. 
 
Regards, 
Vijayalakshmi VR 


Marked as answer
Loader.
Up arrow icon