private void setupScannerTypeForMark(PresentationReconciler reconciler) {
String[] contentTypes = mode.getContentTypes();
for (int i = 0; i < contentTypes.length; i++) {
String contentType = contentTypes[i];
if(contentType.startsWith(Type.MARK_PREVIOUS) || contentType.startsWith(Type.MARK_FOLLOWING)) {
RuleBasedScanner scanner = new RuleBasedScanner();
String colorType = contentType.substring(contentType.lastIndexOf('.') + 1);
LToken defaultToken = (LToken) newToken(colorManager.colorForType(colorType), true);
defaultToken.setLength(getLength(contentType));
defaultToken.isPrevious(contentType.startsWith(Type.MARK_PREVIOUS));
scanner.setDefaultReturnToken(defaultToken);
DefaultDamagerRepairer dr = new MarkDamagerRepairer(scanner);
reconciler.setDamager(dr, contentType);
reconciler.setRepairer(dr, contentType);
}
}