Enhanced Codeblock Diff

unlisted

by Syu-fu

Enables diff display with syntax highlighting in Obsidian code blocks for efficient code comparison and review.

5 starsUpdated 1y agoMIT
View on GitHub

Obsidian enhanced codeblock diff

release lint check license

This is an Obsidian plugin which can enables diff display with syntax highlighting in Obsidian code blocks for efficient code comparison and review.

codeblock

Examples

```diff java
 class User {
     public string name;
     public number age;
     public string email;
-    public string phone;
+    public string phoneNumber;
 }
```

codeblock

Configure

You can customize the background colors for added and removed lines in the diff.
These settings can be configured in the same way as the color property in CSS.

Examples

Setting OptionExample Configuration
Added Line Background Colorrgba(0, 255, 128, 0.1)
Removed Line Background Colorrgba(255, 0, 0, 0.1)

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.