docs: function compare(viewOptions, commandSpanId, viewType, toggleable, toggleCommandSpanId){
  		var vOptions = viewOptions;
  		if(!vOptions.highlighters && vOptions.oldFile && vOptions.oldFile.Name && vOptions.newFile && vOptions.newFile.Name){
  			vOptions.highlighters = [new mStaticDataSource.SyntaxHighlighter(), new mStaticDataSource.SyntaxHighlighter()];
  		}
  		if(vOptions.oldFile && vOptions.oldFile.Name){
  			vOptions.oldFile.Type = _contentType(vOptions.oldFile.Name);
  		}
  		if(vOptions.newFile && vOptions.newFile.Name){
  			vOptions.newFile.Type = _contentType(vOptions.newFile.Name);
  		}
  		if(commandSpanId || toggleCommandSpanId) {
  			var cmdProvider = new mCompareCommands.CompareCommandFactory({commandService: commandService, commandSpanId: _convertCommandId(commandSpanId), toggleCommandSpanId: _convertCommandId(toggleCommandSpanId)});
  			vOptions.commandProvider = cmdProvider;
  		}
  		var vType = (viewType === "inline") ? "inline" : "twoWay"; //$NON-NLS-2$ //$NON-NLS-1$ //$NON-NLS-0$
  		if(toggleable) {
  			this.compareView = new mCompareView.toggleableCompareView(vType, vOptions);
  		} else if(vType === "inline") { //$NON-NLS-0$
  			this.compareView = new mCompareView.inlineCompareView(vOptions);
  		} else {
  			this.compareView = new mCompareView.TwoWayCompareView(vOptions);
  		}
  		this.compareView.startup();
      }