textPane.setFont(new Font( Font.MONOSPACED, Font.PLAIN, 10));
this.getContentPane().add( new JScrollPane(textPane),BorderLayout.CENTER);
try
{
Pattern ptrn = Regex.parseXMLResource("/org/gocha/gui/highlight/simplelang.xml");
TextStyles styles = TextStyles.parseXMLResource("/org/gocha/gui/highlight/style.xml");
highlighter = new Highlighter();
highlighter.setTextPane(textPane);
highlighter.setPattern(ptrn);