Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!