I discovered the EclipseColorer plugin (http://colorer.sourceforge.net/eclipsecolorer/) and I want to use it in my own project so I can achieve SQL syntax coloring. I installed the plugin and i added the net.sf.colorer to my extensions and I have this line of code:
styledTextStatement = new StyledText(this, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL | SWT.MULTI);
styledTextStatement.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
TextColorer textColorer = new TextColorer(new ParserFactory("plugins/net.sf.colorer_0.9.9/colorer/catalog.xml"), new ColorManager());
But nothing happens? Does anyone know what I'm doing wrong here? And is the part where I construct the ParserFactory the right one? I hope someone has some experience with this plugin.