code: function createCodeBlock(frame) {
  	var lines = sanitizeLines(frame)
  	var caretLineOriginal = getCaretLine(lines)
  	var codeLine = lines[lines.indexOf(caretLineOriginal) - 1]
  	var caretStart = caretLineOriginal.indexOf('^')
  	// Calculate how many spaces should be displayed under the "no problem here" part of the code line.
  	var toBeReplacedBySpaces = codeLine.substr(0, caretStart)
  	var spaceCount = calculateCountOfReplacementChar(toBeReplacedBySpaces, ' ')
  	var spaces = ' '.repeat(spaceCount)
  	// Calculate how many carets should be displayed under the error-causing part of the code line.
  	var caretCountOriginal = (caretLineOriginal.match(/\^/g) || []).length
  	if (caretCountOriginal === 1) {
  		var carets = '^'
  	} else {
  		var toBeReplacedByMarkers = codeLine.substr(caretStart, caretCountOriginal)
  		var caretCountNew = calculateCountOfReplacementChar(toBeReplacedByMarkers, '^')
  		var carets = '^'.repeat(caretCountNew)
  	}
  	var caretLine = spaces + carets
  	return [codeLine, caretLine].join('\n')
  }
docs: Accepts code snipptet from the error message, sanitizes the lines by removing unnecessary paddings and characters, then finds the line of code with a problem and the line below with a caret sign ^ that undelines the error. It then recalculates how many spaces and carres should be displayed (with non-monospace font) in the caret line and returns both code line & caret line.