Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
79
rated 0 times [  85] [ 6]  / answers: 1 / hits: 16922  / 12 Years ago, fri, may 25, 2012, 12:00:00

I am using ACE Editor to display xml content on my web page. I want to format the xml code in Editor.



Can Any one tell me how to do this ?


More From » ace-editor

 Answers
26

There are numerous modes included in the package and the Wiki at github will tell you how to implement it. Something like this:



var Mode = require('ace/mode/xml').Mode;
editor.getSession().setMode(new Mode());

[#85353] Thursday, May 24, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jaredsages

Total Points: 273
Total Questions: 97
Total Answers: 105

Location: French Southern and Antarctic Lands
Member since Fri, Jan 6, 2023
1 Year ago
jaredsages questions
;