Skip to content

Instantly share code, notes, and snippets.

@salmedina
Last active March 24, 2026 14:21
Show Gist options
  • Select an option

  • Save salmedina/ad8bea4f46de97ea132f71b0bca73663 to your computer and use it in GitHub Desktop.

Select an option

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!");
   }
}
@enisn

enisn commented Jan 13, 2021

Copy link
Copy Markdown

How to keep language syntax intact too?

Does anyone know if this is possible?

+1

@xgqfrms

xgqfrms commented Jan 14, 2021

Copy link
Copy Markdown
```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"
  },
```
/`/`/`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
Copy Markdown
- down
+ up

@adamduncan

Copy link
Copy Markdown

How to keep language syntax intact too?

Does anyone know if this is possible?

+1

@rawhasan

rawhasan commented Aug 6, 2021

Copy link
Copy Markdown
- nice!
+ loved it!!

@PaolaRuby

Copy link
Copy Markdown

How to keep language syntax intact too?

@salmedina

Copy link
Copy Markdown
Author

How to keep language syntax intact too?

Unfortunately it is still not supported as of today.

@xgqfrms

xgqfrms commented Mar 24, 2022

Copy link
Copy Markdown

@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
Copy Markdown
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

bob-zs commented Oct 15, 2022

Copy link
Copy Markdown
- wow
+ nice

@hakeemsalman

Copy link
Copy Markdown

How to keep language syntax intact too?

Does anyone know if this is possible?

+1

@kamontat

Copy link
Copy Markdown
    test
    hello
+   add-1
  + add-1
   +add-1
-   remove-1
  - remove-1
   -remove-1

@ReDestroyDeR

Copy link
Copy Markdown
object HelloWorld extends App {
-   println("Goodbye, World...")
+   println("Hello, World!")
}

@7-zete-7

7-zete-7 commented Apr 8, 2025

Copy link
Copy Markdown
 some
!interesting
 you
-can
+will
 see!

@flash-me

Copy link
Copy Markdown
+// @ts-nocheck
/* tslint:disable */
/* eslint-disable */
-{{>licenseInfo}}
-
-

@flash-me

Copy link
Copy Markdown
+ // @ts-nocheck
/* tslint:disable */
/* eslint-disable */
- {{>licenseInfo}}
- 
- 

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