EditControl (Syntax Editor) Json syntax

Hi,

I would like to use the EditControl for Json string (syntax/color highlight) but don't see as supported language. 

How can I use the EditControl for Json, is there any samples? Or I should use different control to view/edit Json string?

Thanks,

Chris


3 Replies

MJ Madhumithan Jayapathi Syncfusion Team October 9, 2023 12:51 PM UTC

Hi Chris,


We have reviewed your query, and unfortunately, there is no built-in support for JSON syntax in the edit control. However, you can create a custom language to work with JSON syntax. We have attached a sample for the edit control that includes a custom language section, which you can refer to for guidance. To learn more about creating custom languages, please consult our User Guide regarding custom language support: https://help.syncfusion.com/wpf/syntax-editor/language-support/custom-language-support


If you have any further questions or need additional assistance, please feel free to reach out.



CL Chris Lam October 10, 2023 12:55 PM UTC

Hi Madhumithan,

Thank you for your reply. 

I couldn't find the attached sample you mentioned, can you re-attach it?


Thanks

Chris



MJ Madhumithan Jayapathi Syncfusion Team October 11, 2023 07:44 AM UTC

Hi Chris,

Sorry for the inconvenience caused.

We have attached the sample for your reference and please let us know if you need any further assistance.

Regards,
Madhumithan Jayapathi


Attachment: syntaxeditor_593aaf2e.zip

Loader.
Up arrow icon