indentStrategy = editConfiguration.getPyAutoIndentStrategy();
setRangeIndicator(new DefaultRangeIndicator()); // enables standard
// vertical ruler
//Added to set the code folding.
CodeFoldingSetter codeFoldingSetter = new CodeFoldingSetter(this);
this.addModelListener(codeFoldingSetter);
this.addPropertyListener(codeFoldingSetter);
} catch (Throwable e) {
Log.log(e);