Is there an "easy" way to display xml data to a user via an JEditorPane or JTextPane in colored/highlighted way?
http://java-sl.com/xml_editor_kit.html You can try this as well.
An example of XMl Syntax Highligthing for JTextPane you find here
It's a good link, the TAG_PATTERN regex should be enhanced.
Just replace (</?[a-z]*)\\s?>?
by (</?\\w+)\\s*>?
and it should work perfectly !
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With