Is there an "easy" way to display xml data to a user via an JEditorPane or JTextPane in colored/highlighted way?
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 !