Open scripting opened 2 years ago
If you add this to the css for your existing app, you'll get horizontal scrolling:
#idXmlViewer {
overflow-x: scroll;
white-space: pre;
}
Universal (and simple, dependancy-free) “puzzle-piece” tools such as this are a great idea!
I’ve used a browser extension for this (for XML and JSON) - perhaps mining existing extension sourcecode here on GitHub would provide a template for what you’re looking for.
I found something that seems to do the job -- highlight.js.
And, having found one, now I can find others, like prism.js.
Problem solved.
http://scripting.com/2022/06/09.html#a170727
I used the Ace Editor in read-only mode.
Re this post, if you have comments or questions, this is the place.