Skip to content

Instantly share code, notes, and snippets.

@salmedina
Last active January 26, 2024 04:24
  • Star 14 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save salmedina/ad8bea4f46de97ea132f71b0bca73663 to your computer and use it in GitHub Desktop.
public class Hello
{
   public static void Main()
   {
-      System.Console.WriteLine("Hello, World!");
+      System.Console.WriteLine("Rock all night long!");
   }
}
@nandorojo
Copy link

-can i get this to work on npm's website too somehow? 🤷‍♂️
+thank u

@OleksandrKucherenko
Copy link

~ something
- removed
+ added

@rblaine95
Copy link

- if only bitbucket pull request comments
+ properly supported diff syntax

@rabeehrz
Copy link

rabeehrz commented Mar 6, 2020

- added
+ removed

@wmcmurray
Copy link

- first !!
+ ..oh no tenth :(

@pedrofracassi
Copy link

- hello
+ goodbye

@develop-maruku
Copy link

- negative
+ positive

@dreamerchandra
Copy link

dreamerchandra commented Sep 27, 2020

- old
+ new

@nileshgulia1
Copy link

-awesome
+fanatic

@enisn
Copy link

enisn commented Dec 15, 2020

How to keep syntax highlighing?

public class Hello
{
   public static void Main()
   {
       System.Console.WriteLine("Another unchanged line."); // <- how to keep syntax highlighing here?
-      System.Console.WriteLine("Hello, World!");
+      System.Console.WriteLine("Rock all night long!");
   }
}

@MrEyratnz
Copy link

How to keep language syntax intact too?

Does anyone know if this is possible?

@enisn
Copy link

enisn commented Jan 13, 2021

How to keep language syntax intact too?

Does anyone know if this is possible?

+1

@xgqfrms
Copy link

xgqfrms commented Jan 14, 2021

&DiacriticalGrave;&DiacriticalGrave;&DiacriticalGrave;diff
  "dependencies": {
    "core-js": "3.6.5",
    "element-ui": "2.14.1",
-    "vue": "2.6.12",
+    "vue": "3.2.30",
    "vue-router": "3.2.0",
    "vuex": "3.4.0"
  },
&DiacriticalGrave;&DiacriticalGrave;&DiacriticalGrave;
/`/`/`diff
  "dependencies": {
    "core-js": "3.6.5",
    "element-ui": "2.14.1",
-    "vue": "2.6.12",
+    "vue": "3.2.30",
    "vue-router": "3.2.0",
    "vuex": "3.4.0"
  },
/`/`/`
  "dependencies": {
    "core-js": "3.6.5",
    "element-ui": "2.14.1",
-    "vue": "2.6.12",
+    "vue": "3.2.30",
    "vue-router": "3.2.0",
    "vuex": "3.4.0"
  },

@Omarimcblack
Copy link

- down
+ up

@adamduncan
Copy link

How to keep language syntax intact too?

Does anyone know if this is possible?

+1

@rawhasan
Copy link

rawhasan commented Aug 6, 2021

- nice!
+ loved it!!

@PaolaRuby
Copy link

How to keep language syntax intact too?

@salmedina
Copy link
Author

How to keep language syntax intact too?

Unfortunately it is still not supported as of today.

@xgqfrms
Copy link

xgqfrms commented Mar 24, 2022

@PaolaRuby maybe you can try this way

demo

diff

  "dependencies": {
-    "vue": "2.6.12",
+    "vue": "3.2.30",
  },

old version

  "dependencies": {
     "vue": "2.6.12",
  },

new version

  "dependencies": {
     "vue": "3.2.30",
  },

others

use git history to create one screenshot

image

@jessiewestlake
Copy link

diff --git a/HITSServiceNow/Public/Set-RemedyAsset.ps1 b/HITSServiceNow/Public/Set-RemedyAsset.ps1
index 2d9091cedadbe7526600160c9ffbdb8815007bb8..b6f9f5b9cddc33cfdda1d1c8b87cb6ac44d93f8d 100644
--- a/HITSServiceNow/Public/Set-RemedyAsset.ps1
+++ b/HITSServiceNow/Public/Set-RemedyAsset.ps1
@@ -72,8 +72,8 @@ Function Set-RemedyAsset
         $Headers = @{'X-no-response-body'=(-NOT $PassThru)}
     }
     Process
-    {        
-        $Body += switch ($PSBoundParameters.Keys)
+    {
+        [array]$Body += switch ($PSBoundParameters.Keys)
         {
             'Name'            { @{'u_asset_name'=$Name} }
             'OperatingSystem' { @{'u_operating_system'=$OperatingSystem} }

@bob-zs
Copy link

bob-zs commented Oct 15, 2022

- wow
+ nice

@hakeemsalman
Copy link

How to keep language syntax intact too?

Does anyone know if this is possible?

+1

@kamontat
Copy link

    test
    hello
+   add-1
  + add-1
   +add-1
-   remove-1
  - remove-1
   -remove-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment