if (singleLine)
createSingleLineSourceViewer(parent);
else
createSourceViewer(parent);
whitespaceCharacterPainter = new WhitespaceCharacterPainter(viewer);
showingInvisibles = false;
colourer = new SwtColourer(this);
mateDocument = new SwtMateDocument(this);
grammarListeners = new ArrayList<IGrammarListener>();