startPos= text.indexOf('\n', startPos) + 1;
}
endPos= text.indexOf('\n', startPos) + 1;
try {
hLiter.addHighlight(startPos, endPos, painter);
} catch (BadLocationException e) {
// ignore it, but clear everything. This has to do with
// not knowing the actual pseuco file
input.getHighlighter().removeAllHighlights();
}