Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

178
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda