Libraryless. Click here for Pure Java version (1253L/12K/15K).
1 | !747 |
2 | |
3 | m { |
4 | !include #1000882 // Diff |
5 | !include #1000883 // BlockDiffer |
6 | |
7 | static S text1, text2, diff; |
8 | |
9 | p { |
10 | text1 = "hello\nworld"; |
11 | text2 = "hello\nyour\nworld"; |
12 | diff = fromLines(BlockDiffer.generateUniDiff(toLines(text1), toLines(text2), 1)); |
13 | print(diff); |
14 | } |
15 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1000884 |
Snippet name: | BlockDiffer test |
Eternal ID of this version: | #1000884/1 |
Text MD5: | c577d747348eb319265eb4c6333382eb |
Transpilation MD5: | c5433d37b327450d14b3ba0de7112400 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-09-04 18:40:46 |
Source code size: | 298 bytes / 15 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 728 / 754 |
Referenced in: | [show references] |