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 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 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
You can try out In this website :- https://manubb.github.io/react-ace-builds/diff.html
Browsers Chrome 97.0
Platforms Linux