textPresentation.addStyleRange(new StyleRange(offset, len, textAttribute.getForeground(), null,
textAttribute.getStyle()));
}
}
} finally {
fastPartitioner.disconnect();
}
if (showSpacesAndNewLines) {
for (int i = 0; i < result.length(); i++) {
char curr = result.charAt(i);