function showDiff(acediff3, editor, startLine, endLine, className) {
  const editorInstance = acediff3.editors[editor];

  if (endLine < startLine) { // can this occur? Just in case.
    endLine = startLine;
  }

  const classNames = `${className} ${(endLine > startLine) ? 'lines' : 'targetOnly'}`;

  // to get Ace to highlight the full row we just set the start and end chars to 0 and 1
  editorInstance.markers.push(
    editorInstance.ace.session.addMarker(
      new Range(
        startLine,
        0,
        endLine - 1 /* because endLine is always + 1 */,
        1,
      ), classNames, 'fullLine',
    ),
  );
}
// shows a diff in one of the two editors.
shows a diff in one of the two editors.
shows a diff in one of the two editors .
function showDiff(acediff3, editor, startLine, endLine, className) {
  const editorInstance = acediff3.editors[editor];
  if (endLine < startLine) { 
    endLine = startLine;
  }
  const classNames = `${className} ${(endLine > startLine) ? 'lines' : 'targetOnly'}`;
  editorInstance.markers.push(
    editorInstance.ace.session.addMarker(
      new Range(
        startLine,
        0,
        endLine - 1 ,
        1,
      ), classNames, 'fullLine',
    ),
  );
}
function showDiff ( acediff3 , editor , startLine , endLine , className ) { const editorInstance = acediff3 . editors [ editor ] ; if ( endLine < startLine ) { endLine = startLine ; } const classNames = ` ${ className } ${ ( endLine > startLine ) ? 'lines' : 'targetOnly' } ` ; editorInstance . markers . push ( editorInstance . ace . session . addMarker ( new Range ( startLine , 0 , endLine - 1 , 1 , ) , classNames , 'fullLine' , ) , ) ; }
shows a diff in one of the two editors.
shows a diff in one of the two editors .
// can this occur? Just in case. // to get Ace to highlight the full row we just set the start and end chars to 0 and 1 /* because endLine is always + 1 */