Enhanced Codeblock Diff
unlistedby Syu-fu
Enables diff display with syntax highlighting in Obsidian code blocks for efficient code comparison and review.
★ 5 starsUpdated 1y agoMIT
Obsidian enhanced codeblock diff
This is an Obsidian plugin which can enables diff display with syntax highlighting in Obsidian code blocks for efficient code comparison and review.
Examples
```diff java
class User {
public string name;
public number age;
public string email;
- public string phone;
+ public string phoneNumber;
}
```
↓
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) |
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.