IDocument document = super.createDocument(element);
if (document != null){
//Attach the partitioner for .cfm files. looks for and comments tags mainly
IDocumentPartitioner cmfPartitioner =
new FastPartitioner(
new CFMPartitionScanner(),
new String[]{
CFMPartitionScanner.CF_COMMENT
}
);