SourceViewer sourceViewer = new SourceViewer(folder, verticalRuler, styles);
sourceViewer.configure(new XMLConfiguration(new ColorManager()));
sourceViewer.setEditable(false);
sourceViewer.getTextWidget().setFont(JFaceResources.getTextFont());
IDocumentPartitioner partitioner = new FastPartitioner(new XMLPartitionScanner(), new String[] { XMLPartitionScanner.XML_TAG, XMLPartitionScanner.XML_COMMENT });
partitioner.connect(document);
document.setDocumentPartitioner(partitioner);
sourceViewer.setDocument(document);
verticalRuler.setModel(model);
fxmlContent.setControl(sourceViewer.getControl());