code: function(lineDelimiter, all) {
  			if (lineDelimiter === "auto") {
  				lineDelimiter = undefined;
  				if (this.getLineCount() > 1) {
  					lineDelimiter = this.getText(this.getLineEnd(0), this.getLineEnd(0, true));
  				}
  			}
  			this._lineDelimiter = lineDelimiter ? lineDelimiter : util.platformDelimiter;
  			if (all) {
  				var lineCount = this.getLineCount();
  				if (lineCount > 1) {
  					var lines = new Array(lineCount);
  					for (var i=0; i<lineCount; i++) {
  						lines[i] = this.getLine(i);
  					}
  					this.setText(lines.join(this._lineDelimiter));
  				}
  			}
  		}
docs: Sets the line delimiter that is used by the view
  when new lines are inserted in the model due to key
  strokes and paste operations. The line delimiter of
  existing lines are unchanged unless the to <code>all</code>
  argument is <code>true</code>.
  <p>
  If lineDelimiter is "auto", the delimiter is computed to be
  the first delimiter found in the current text. If lineDelimiter
  is undefined or if there are no delimiters in the current text, the
  platform delimiter is used.
  </p>
  
  @param {String} lineDelimiter the line delimiter that is used by the view when inserting new lines.
  @param {Boolean} [all=false] whether or not the delimiter of existing lines are changed.