Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

177
Vistas
The react ace diff editor does not display a proper diff between two code snippets

Description

When I use react ace diff-editor I am attempting to identify the differences between two Python code snippets, but the results are not exactly the same, with some snippets showing abrupt highlighting, and others not showing proper differences

code snippets on left editor


// Code snippet - 1
a = 5;,
b = 10;,


print(a + b)

---------------------------------------------------------------------------------------

// Code snippet - 2
a = int(input())
b= input()
c=a
c=b:
x=a+b:

print(x)

code snippets on right editor

// Code snippet - 1

a = 5
b = 10

print(a + b

---------------------------------------------------------------------------------------

// Code snippet - 2

a = int(input())
b= input()
c=a
c=b
x=a+b
print(x)

CASE 1: Take a look at Code snippet 1 above and paste the snippets in this website. Right diff editor doesn't show the difference b = 10 why?

CASE 2: Take a look at Code snippet 2 above and paste the snippets in this website. Right diff editor doesn't show the difference x=a+b why?

EXPECTED :- If the line has been changed, then the diff should be displayed properly

ACTUAL :- The DIFF is not displaying correctly

ATTACHMENTS

  • Click here ..
  • Click here ..

You can try out In this website :- https://manubb.github.io/react-ace-builds/diff.html

Browsers Chrome 97.0

Platforms Linux

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda