Uses 1113K of libraries. Click here for Pure Java version (11169L/56K).
!7 cm DiffTwoSnippets { S s1, s2; transient JTextArea taDiff; visual northAndCenterWithMargins( centerAndEastWithMarginInbetween(jhgrid( withLabel("Snippet 1 (\"-\"):", onEnter(jLiveValueTextField_bothWays(dm_fieldLiveValue('s1)), rThread go)), withLabel("Snippet 2 (\"+\"):", onEnter(jLiveValueTextField_bothWays(dm_fieldLiveValue('s2)), rThread go))), jbutton("Diff!", rThread go)), taDiff = typeWriterTextArea()); void go enter { temp dm_tempDisableButtons(); S text1 = loadSnippet(trim(s1)); S text2 = loadSnippet(trim(s2)); setText(taDiff, "Diff between " + s1 + " and " + s2 + ":\n\n" + or2(unidiff_rtrim(text1, text2), "no differences"); } }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016809 |
Snippet name: | Diff Two Snippets [Dyn Module] |
Eternal ID of this version: | #1016809/16 |
Text MD5: | d62bc926220a7b115697e096962a9f40 |
Transpilation MD5: | ad4b0a93691d1a0b6ec82c2bb6397cb0 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-08 05:20:53 |
Source code size: | 731 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 419 / 12202 |
Version history: | 15 change(s) |
Referenced in: | [show references] |