I've been struggling to get the GWT wrapper of Syntaxhighlighter to work. I got the libraries off http://code.google.com/p/gwt-syntaxhighlighter/, but none of them seem to be working. I'm starting to wonder if it's my understanding of using external libraries that is so poor, or if it's indeed badly built JARs. Has anyone managed to use this? The gwt-syntaxhighlighter-1.1.1-gwt-standard.jar that's supposed to be all I need to run this, lacks both the sources and the Highlighter.gwt.xml file. By combining the contents of the other JARs ( http://cl.ly/K1N4 ), I managed to get to the following exception, where I'm stuck now:
http://www.pastit.dotcloud.com/131
My setting is the following: I have the custom built jar on my build path. My MainPage.gwt.xml contains the following line:
<inherits name='com.alexgorbatchev.syntaxhighlighter.Highlighter'/>
And somewhere in my code I do the following:
final Highlighter highlighter = new Highlighter(Brushes.XML());
highlighter.setText(xml);
final VerticalPanel xmlPanel = new VerticalPanel();
xmlPanel.add(highlighter);
As soon as the above line is reached, the exception I provided is thrown. Any kind of help is much appreciated!