mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-01-28 01:08:34 +08:00
Support .patch and .rej extensions for diff highlighting
Added '.patch' and '.rej' to the supported file extensions in DiffHighlightingDefinition to improve compatibility with common diff-related file types.
This commit is contained in:
@@ -27,7 +27,7 @@ public class DiffHighlightingDefinition : DarkHighlightingDefinition
|
||||
{
|
||||
public override string Name => "Diff";
|
||||
|
||||
public override string Extension => ".diff";
|
||||
public override string Extension => ".diff;.patch;.rej";
|
||||
|
||||
public override HighlightingRuleSet MainRuleSet => new()
|
||||
{
|
||||
|
||||
@@ -34,7 +34,7 @@ Update not completed yet...
|
||||
- `.html`, `.htm` (HTML file)
|
||||
- `.xshd` (Highlighting definition)
|
||||
- `.properties` (Java properties/config)
|
||||
- `.diff`, `.patch` (Diff/Patch file)
|
||||
- `.diff`, `.patch`, `.rej` (Diff/Patch file)
|
||||
- `.sub`, `.srt` (Subtitle file)
|
||||
- `.conf`, `.config` (Configuration file)
|
||||
- `.env` (Environment config)
|
||||
|
||||
Reference in New Issue
Block a user