this.colorCache.setPreferences(prefs);
PyFormatStd formatter = new PyFormatStd();
try {
Document doc = new Document(str);
formatter.formatAll(doc, null, false, formatStd, false);
str = doc.get();
} catch (SyntaxErrorException e) {
}
FastStringBuffer buf = new FastStringBuffer();
for (String line : StringUtils.splitInLines(str)) {