Skip to content

EnhancedCodeblockDiff is an Obsidian plugin that enables simultaneous diff display and syntax highlighting within code blocks. With this plugin, you can visually identify code changes while preserving language-specific syntax coloring, making code comparison and review more efficient.

License

Notifications You must be signed in to change notification settings

Syu-fu/obsidian-enhanced-codeblock-diff

Repository files navigation

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 Option Example Configuration
Added Line Background Color rgba(0, 255, 128, 0.1)
Removed Line Background Color rgba(255, 0, 0, 0.1)

About

EnhancedCodeblockDiff is an Obsidian plugin that enables simultaneous diff display and syntax highlighting within code blocks. With this plugin, you can visually identify code changes while preserving language-specific syntax coloring, making code comparison and review more efficient.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •