Click here to Skip to main content
15,888,313 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
Hi Friends,
I have one task. I need to create an XML editor in Asp.net or Asp.net MVC.
This web application would be used for XML editor. It would have XML behaviors.

For example. when we type the opening tag <xml> it will type the closing tag like Notepad++. then, I need to differentiate XML node, attributes & its values in different colors.

Is there any possibility to develop web app using Asp.net (or MVC)

What I have tried:

I have no source to try, i am new one to asp.net
Posted
Comments
Richard Deeming 21-Nov-17 12:28pm    
You might want to take a look at Monaco[^], the editor that powers VS Code. It could probably be adapted for your requirements.

I have some news for you I'm afraid. Most of the work you're going to have to do will be in JavaScript; it's the client side that you're going to be doing most of the work as you don't want to keep round tripping every time you type something.
 
Share this answer
 
ASP.NET code runs entirely server-side, never on the client. It handles all of your server operation and generates web pages to send to your clients.

Editors, like you're describing, have to be written in javascript in order to do anything on the client. The only thing your ASP.NET code is going to do with this editor is possibly provide functionality to load and save files for the editor on the server and/or do some processing on the XML the client writes.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900