From: Dave K. <dku...@re...> - 2007-08-15 15:42:39
|
Moore, Greg <Greg_W_Moore <at> adp.com> writes: > > Hi, > > I'm hoping that one of the readers of this list might have an idea on > this. Its not specifically a Jython issue but I am using jython so... it > never hurts to ask. :) > > I'm using as swing component JTextArea to display some xml and I'm > looking for something that will allow me to do syntax coloring ala > JEdit, Eclipse or whatever. I'm not tied to JtextArea but I am tied to > it being open source since there isn't any funding available for a > commercial library. :( You might also want to look at Pygments: http://pygments.org/ Pygments enables you to define your own highlighter, but comes with an XML formatter/highlighter, I believe. I've used Pygments with Python, but not Jython. However, I do not see any C code in the implementation. And, just now I was able to import pygments in jython. Dave |